public static function Dropdown::preRenderDropdown in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.2 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.3 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.4 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.5 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.6 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.7 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 8.8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 10.3.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 10.0.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 10.1.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
- 10.2.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
Prepare the render array for the template.
File
- modules/
custom/ dropdown/ src/ Element/ Dropdown.php, line 40
Class
- Dropdown
- Provides an dropdown element.
Namespace
Drupal\dropdown\ElementCode
public static function preRenderDropdown($element) {
// @TODO Attach $element['#attached']['library'][] = 'dropdown';
return $element;
}