public static function Select::preRenderSelect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/Element/Select.php \Drupal\Core\Render\Element\Select::preRenderSelect()
 
Prepares a select render element.
File
- core/
lib/ Drupal/ Core/ Render/ Element/ Select.php, line 157  - Contains \Drupal\Core\Render\Element\Select.
 
Class
- Select
 - Provides a form element for a drop-down menu or scrolling selection box.
 
Namespace
Drupal\Core\Render\ElementCode
public static function preRenderSelect($element) {
  Element::setAttributes($element, array(
    'id',
    'name',
    'size',
  ));
  static::setAttributes($element, array(
    'form-select',
  ));
  return $element;
}