You are here

public function BooleanBase::getItemFormats in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/BooleanBase.php \Drupal\webform\Plugin\WebformElement\BooleanBase::getItemFormats()

Get an element's available single value formats.

Return value

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

Overrides WebformElementBase::getItemFormats

File

src/Plugin/WebformElement/BooleanBase.php, line 53

Class

BooleanBase
Provides a base 'boolean' class.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getItemFormats() {
  $formats = parent::getItemFormats();
  $formats['raw'] = $this
    ->t('Raw/return value');
  return $formats;
}