julienmonnerie/kirby/src/Blueprint/NodeIcon.php

28 lines
559 B
PHP
Raw Normal View History

2022-12-19 14:56:05 +01:00
<?php
namespace Kirby\Blueprint;
/**
* Custom emoji or icon from the Kirby iconset
*
* @package Kirby Blueprint
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://opensource.org/licenses/MIT
*
2023-04-14 16:34:06 +02:00
* // TODO: include in test coverage in 3.10
2022-12-19 14:56:05 +01:00
* @codeCoverageIgnore
*/
class NodeIcon extends NodeString
{
public static function field()
{
$field = parent::field();
$field->id = 'icon';
$field->label->translations = ['en' => 'Icon'];
return $field;
}
}