You are here

public static function CshsElement::preRender in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.3 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::preRender()
  2. 8.2 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::preRender()

File

src/Element/CshsElement.php, line 75

Class

CshsElement
Defines the CSHS element.

Namespace

Drupal\cshs\Element

Code

public static function preRender(array $element) : array {
  $element['#options'] = static::formatOptions($element);
  return $element;
}