You are here

public function ModuleFilter::getInfo in Module Filter 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 ElementInterface::getInfo

File

src/Element/ModuleFilter.php, line 23
Contains \Drupal\module_filter\Element\ModuleFilter.

Class

ModuleFilter
Provides a one-line text field form element.

Namespace

Drupal\module_filter\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#process' => array(
      array(
        $class,
        'processModuleFilter',
      ),
      array(
        $class,
        'processAjaxForm',
      ),
    ),
    '#weight' => -1,
    '#tree' => TRUE,
    '#theme' => 'module_filter',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
}