You are here

public static function Dropdown::preRenderDropdown in Open Social 8.9

Same name and namespace in other branches
  1. 8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  2. 8.2 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  3. 8.3 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  4. 8.4 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  5. 8.5 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  6. 8.6 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  7. 8.7 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  8. 8.8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  9. 10.3.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  10. 10.0.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  11. 10.1.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::preRenderDropdown()
  12. 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\Element

Code

public static function preRenderDropdown($element) {

  // @TODO Attach $element['#attached']['library'][] = 'dropdown';
  return $element;
}