private function LayouterForm::textContentHandler in Layouter - WYSIWYG layout templates 8
Returns the 'textarea' form item.
Parameters
string $name: Field name.
array $params: Additional parameters for field from layouter template.
Return value
array Renderable array for textfield.
1 call to LayouterForm::textContentHandler()
- LayouterForm::buildLayouterFields in src/
Form/ LayouterForm.php - Sets up and builds fields from selected layouter template.
File
- src/
Form/ LayouterForm.php, line 229
Class
- LayouterForm
- Provides multistep ajax form for an layout choice.
Namespace
Drupal\layouter\FormCode
private function textContentHandler($name, array $params) {
$result[$name] = [
'#type' => 'textarea',
'#title' => $params['title'],
'#description' => $params['description'],
'#rows' => 10,
'#required' => 1,
];
return $result;
}