function TextFormat::getInfo
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
File
-
core/
modules/ filter/ src/ Element/ TextFormat.php, line 41
Class
- TextFormat
- Provides a text format render element.
Namespace
Drupal\filter\ElementCode
public function getInfo() {
$class = static::class;
return [
'#process' => [
[
$class,
'processFormat',
],
],
'#base_type' => 'textarea',
'#theme_wrappers' => [
'text_format_wrapper',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.