You are here

public function Micon::getInfo in Micon 2.x

Same name in this branch
  1. 2.x src/Element/Micon.php \Drupal\micon\Element\Micon::getInfo()
  2. 2.x src/Entity/Micon.php \Drupal\micon\Entity\Micon::getInfo()
Same name and namespace in other branches
  1. 8 src/Element/Micon.php \Drupal\micon\Element\Micon::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/Micon.php, line 34

Class

Micon
Provides a one-line text field form element.

Namespace

Drupal\micon\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processMicon',
      ],
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderMicon',
      ],
    ],
    '#theme' => 'select',
    '#theme_wrappers' => [
      'form_element',
    ],
    '#multiple' => FALSE,
    '#packages' => [],
  ];
}