You are here

public function SynonymsEntitySelect::getInfo in Synonyms 2.0.x

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 Select::getInfo

File

modules/synonyms_select/src/Element/SynonymsEntitySelect.php, line 25

Class

SynonymsEntitySelect
Form element for synonyms-friendly entity select.

Namespace

Drupal\synonyms_select\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  array_unshift($info['#process'], [
    get_class($this),
    'elementSynonymsEntitySelect',
  ]);
  $info['#element_validate'][] = [
    get_class($this),
    'validateEntitySelect',
  ];
  return $info;
}