* @author Anne-Catherine Cognet * @since 3.0.0 */ class Field extends UIBlock { // Overloaded constants /** @inheritdoc */ public const BLOCK_CODE = 'ibo-field'; /** @inheritdoc */ public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/field/layout'; public const ENUM_FIELD_LAYOUT_SMALL = 'small'; public const ENUM_FIELD_LAYOUT_LARGE = 'large'; /** * @var array Array of various parameters of the field. * This should be exploded in dedicated properties instead of a grey array. * See in the corresponding Twig file for keys to use */ protected $aParams; public function __construct(array $aParams, ?string $sId = null) { parent::__construct($sId); $this->aParams = $aParams; } /** * @return array * @internal */ public function GetParams(): array { return $this->aParams; } }