You are here

public function WebformImageSelect::getItemsFormats in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 214

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'),
  ];
}