You are here

public function WebformImageSelect::getItemsFormats in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php \Drupal\webform_image_select\Plugin\WebformElement\WebformImageSelect::getItemsFormats()

Get an element's available multiple value formats.

Return value

array An associative array of multiple value formats containing name/label pairs.

Overrides OptionsBase::getItemsFormats

File

modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php, line 189

Class

WebformImageSelect
Provides a 'image_select' element.

Namespace

Drupal\webform_image_select\Plugin\WebformElement

Code

public function getItemsFormats() {
  return parent::getItemsFormats() + [
    'br' => $this
      ->t('Break'),
    'space' => $this
      ->t('Space'),
  ];
}