You are here

public function WebformImageSelectImages::getInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_image_select/src/Element/WebformImageSelectImages.php \Drupal\webform_image_select\Element\WebformImageSelectImages::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/WebformImageSelectImages.php, line 21

Class

WebformImageSelectImages
Provides a form element to assist in creation of webform select image images.

Namespace

Drupal\webform_image_select\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#label' => t('image'),
    '#labels' => t('images'),
    '#min_items' => 3,
    '#empty_items' => 1,
    '#add_more_items' => 1,
    '#process' => [
      [
        $class,
        'processWebformImageSelectImages',
      ],
    ],
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}