public static function WebformElementAttributes::preRenderWebformElementAttributes in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformElementAttributes.php \Drupal\webform\Element\WebformElementAttributes::preRenderWebformElementAttributes()
Prepares a #type 'webform_element_attributes' render element.
Parameters
array $element: An associative array containing the properties of the element.
Return value
array The $element.
File
- src/
Element/ WebformElementAttributes.php, line 198
Class
- WebformElementAttributes
- Provides a webform element for element attributes.
Namespace
Drupal\webform\ElementCode
public static function preRenderWebformElementAttributes($element) {
static::setAttributes($element, [
'webform-element-attributes',
]);
return $element;
}