You are here

public function Dropdown::getInfo in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  2. 8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  3. 8.2 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  4. 8.3 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  5. 8.5 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  6. 8.6 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  7. 8.7 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  8. 8.8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  9. 10.3.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  10. 10.0.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  11. 10.1.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
  12. 10.2.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

modules/custom/dropdown/src/Element/Dropdown.php, line 22

Class

Dropdown
Provides an dropdown element.

Namespace

Drupal\dropdown\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#label' => 'Default Label',
    '#process' => [
      [
        $class,
        'processDropdown',
      ],
    ],
    '#description' => t('Dropdown element.'),
    '#theme_wrappers' => [
      'dropdown',
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderDropdown',
      ],
    ],
  ];
}