You are here

public function WebformAutocomplete::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformAutocomplete.php \Drupal\webform\Element\WebformAutocomplete::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 Textfield::getInfo

File

src/Element/WebformAutocomplete.php, line 17

Class

WebformAutocomplete
Provides a one-line text field with autocompletion webform element.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  $class = get_class($this);
  $info = parent::getInfo();
  $info['#pre_render'][] = [
    $class,
    'preRenderWebformAutocomplete',
  ];
  return $info;
}