Textarea
class Textarea
Provides a form element for input of multiple-line text.
Properties:
- #rows: Number of rows in the text box.
- #cols: Number of columns in the text box.
- #resizable: Controls whether the text area is resizable. Allowed values are "none", "vertical", "horizontal", or "both" (defaults to "vertical").
Usage example:
$form['text'] = array( '#type' => 'textarea', '#title' => $this->t('Text'), );
Plugin annotation
@FormElement("textarea")
Hierarchy
- class \Drupal\Component\Plugin\Pl