You are here

public function BooleanYesNo::getFormatOptions in Boolean formatter 8

2 calls to BooleanYesNo::getFormatOptions()
BooleanYesNo::settingsForm in lib/Drupal/boolean_formatter/Plugin/field/formatter/BooleanYesNo.php
BooleanYesNo::settingsSummary in lib/Drupal/boolean_formatter/Plugin/field/formatter/BooleanYesNo.php

File

lib/Drupal/boolean_formatter/Plugin/field/formatter/BooleanYesNo.php, line 119
Contains \Drupal\boolean_formatter\Plugin\field\formatter\BooleanYesNo.

Class

BooleanYesNo
Plugin implementation of the 'boolean_formatter' formatter.

Namespace

Drupal\boolean_formatter\Plugin\field\formatter

Code

public function getFormatOptions(array $options = array()) {
  $format_options = array();
  foreach ($this
    ->getFormats($options) as $key => $format) {
    $format_options[$key] = implode('/', $format);
  }
  return $format_options;
}