You are here

public function ElementBase::getInfo in Select (or other) 8

Same name and namespace in other branches
  1. 8.3 src/Element/ElementBase.php \Drupal\select_or_other\Element\ElementBase::getInfo()
  2. 4.x src/Element/ElementBase.php \Drupal\select_or_other\Element\ElementBase::getInfo()

@codeCoverageIgnore

Overrides ElementInterface::getInfo

File

src/Element/ElementBase.php, line 83

Class

ElementBase
Base class for select or other form elements.

Namespace

Drupal\select_or_other\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processSelectOrOther',
      ],
    ],
    '#multiple' => FALSE,
    '#select_type' => 'list',
    '#merged_values' => FALSE,
    '#theme_wrappers' => [
      'form_element',
    ],
    '#options' => [],
    '#tree' => TRUE,
  );
}