You are here

public function SearchApiAutocomplete::getInfo in Search API Autocomplete 8

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

File

src/Element/SearchApiAutocomplete.php, line 20

Class

SearchApiAutocomplete
Provides a Search API Autocomplete form element.

Namespace

Drupal\search_api_autocomplete\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $class = get_class($this);

  // Apply default form element properties.
  $info['#search_id'] = NULL;
  $info['#data'] = [];
  array_unshift($info['#process'], [
    $class,
    'processSearchApiAutocomplete',
  ]);
  return $info;
}