You are here

public function WebformImageSelect::getInfo in Webform 6.x

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

File

modules/webform_image_select/src/Element/WebformImageSelect.php, line 22

Class

WebformImageSelect
Provides a webform element for a selecting an image.

Namespace

Drupal\webform_image_select\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $info['#images'] = [];
  $info['#images_randomize'] = FALSE;
  $info['#show_label'] = FALSE;
  $info['#filter'] = FALSE;
  $info['#filter__placeholder'] = NULL;
  $info['#filter__singular'] = NULL;
  $info['#filter__plural'] = NULL;
  $info['#filter__no_result'] = NULL;
  return $info;
}