public function Linkit::getInfo in Linkit 8.5
Same name and namespace in other branches
- 8.4 src/Element/Linkit.php \Drupal\linkit\Element\Linkit::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
- src/
Element/ Linkit.php, line 21
Class
- Linkit
- Provides a form element for linkit.
Namespace
Drupal\linkit\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#size' => 60,
'#process' => [
[
$class,
'processLinkitAutocomplete',
],
[
$class,
'processGroup',
],
[
$class,
'processAjaxForm',
],
],
'#pre_render' => [
[
$class,
'preRenderLinkitElement',
],
[
$class,
'preRenderGroup',
],
],
'#theme' => 'input__textfield',
'#theme_wrappers' => [
'form_element',
],
];
}