attributes->withAdditional(['rows' => (string) $this->rows]); $attrArray = $attrs->toArray(); $content = $this->value !== null ? htmlspecialchars((string) $this->value) : ''; $textarea = FormElement::create('textarea', $attrArray, $content); $wrapped = $this->wrapper->wrap($textarea, $this->metadata); return $form->addElement($wrapped); } public function getName(): string { return $this->metadata->name; } public function getValue(): mixed { return $this->value; } public function getLabel(): string { return $this->metadata->label; } }