protected function ImageLightBoxFormatter::getBooleanSettingLabel in ImageLightbox 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::getBooleanSettingLabel()
- 2.0.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::getBooleanSettingLabel()
Returns labels for boolean settings.
1 call to ImageLightBoxFormatter::getBooleanSettingLabel()
- ImageLightBoxFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ ImagelightboxFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ ImagelightboxFormatter.php, line 213
Class
- ImageLightBoxFormatter
- Plugin implementation of the 'imagelightbox' formatter.
Namespace
Drupal\imagelightbox\Plugin\Field\FieldFormatterCode
protected function getBooleanSettingLabel($setting) {
return $this
->getSetting($setting) ? t('Yes') : t('No');
}