You are here

public function WebformImageSelectElementImages::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_image_select/src/Element/WebformImageSelectElementImages.php \Drupal\webform_image_select\Element\WebformImageSelectElementImages::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

modules/webform_image_select/src/Element/WebformImageSelectElementImages.php, line 29

Class

WebformImageSelectElementImages
Provides a form element for managing webform element options.

Namespace

Drupal\webform_image_select\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processWebformImageSelectElementImages',
      ],
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}