You are here

public function Linkit::getInfo in Linkit 8.4

Same name and namespace in other branches
  1. 8.5 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 27
Contains \Drupal\linkit\Element\Linkit.

Class

Linkit
Provides a form element for linkit.

Namespace

Drupal\linkit\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#size' => 60,
    '#process' => array(
      array(
        $class,
        'processLinkitAutocomplete',
      ),
      array(
        $class,
        'processGroup',
      ),
    ),
    '#pre_render' => array(
      array(
        $class,
        'preRenderLinkitElement',
      ),
      array(
        $class,
        'preRenderGroup',
      ),
    ),
    '#theme' => 'input__textfield',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
}