['type'=>'text','required'=>true],'level'=>['type'=>'select','options'=>[1,2,3,4,5,6]]]; } public function defaults(): array { return ['text'=>'Heading','level'=>2]; } public function render(array $properties, array $context=[]): string { $level=max(1,min(6,(int)($properties['level']??2))); return ''.e($properties['text']??'').''; } }