You are here

protected function BaguetteboxFormatter::getBooleanSettingLabel in baguetteBox.js 8

Returns labels for boolean settings.

1 call to BaguetteboxFormatter::getBooleanSettingLabel()
BaguetteboxFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/BaguetteboxFormatter.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/BaguetteboxFormatter.php, line 278

Class

BaguetteboxFormatter
Plugin implementation of the 'baguettebox' formatter.

Namespace

Drupal\baguettebox\Plugin\Field\FieldFormatter

Code

protected function getBooleanSettingLabel($setting) {
  return $this
    ->getSetting($setting) ? $this
    ->t('Yes') : $this
    ->t('No');
}