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
|
|
|
|
*
|
2025-04-21 18:57:21 +02:00
|
|
|
* // TODO: include in test coverage once blueprint refactoring is done
|
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;
|
|
|
|
}
|
|
|
|
}
|