protected function TextFormat::prepareWrapper in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/TextFormat.php \Drupal\webform\Plugin\WebformElement\TextFormat::prepareWrapper()
Set an elements #states and flexbox wrapper.
Parameters
array $element: An element.
Overrides WebformElementBase::prepareWrapper
File
- src/
Plugin/ WebformElement/ TextFormat.php, line 158
Class
- TextFormat
- Provides a 'text_format' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function prepareWrapper(array &$element) {
$element['#pre_render'][] = [
get_class($this),
'preRenderFixTextFormatStates',
];
parent::prepareWrapper($element);
}