You are here

protected function TextFormat::prepareWrapper in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\WebformElement

Code

protected function prepareWrapper(array &$element) {
  $element['#pre_render'][] = [
    get_class($this),
    'preRenderFixTextFormatStates',
  ];
  parent::prepareWrapper($element);
}