public static function BootstrapDateTime::preRenderBootstrapDateTime in Bootstrap DateTime Picker 8
Render element for input.html.twig.
Parameters
array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #size, #maxlength, #placeholder, #required, #attributes.
Return value
array The $element with prepared variables ready for input.html.twig.
File
- src/
Element/ BootstrapDateTime.php, line 47
Class
- BootstrapDateTime
- Provides a BootstrapDateTime form element.
Namespace
Drupal\bootstrap_datetime\ElementCode
public static function preRenderBootstrapDateTime(array $element) {
Element::setAttributes($element, [
'id',
'name',
'value',
'size',
]);
static::setAttributes($element, [
'form-date',
]);
return $element;
}