Skip to content
Snippets Groups Projects
XMLEditor.php 540 B
Newer Older
  • Learn to ignore specific revisions
  • namespace App\Views\Components\Forms;
    
    class XMLEditor extends FormComponent
    
    {
        /**
         * @var array<string, string>
         */
        protected array $attributes = [
            'rows' => '5',
            'class' => 'textarea',
        ];
    
        public function render(): string
        {
    
            $content = $this->slot;
            $this->attributes['slot'] = 'textarea';
            $textarea = form_textarea($this->attributes, $content);