protected function BaguetteboxFormatter::captionsSourceOptions in baguetteBox.js 8
Returns captions source options.
2 calls to BaguetteboxFormatter::captionsSourceOptions()
- BaguetteboxFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ BaguetteboxFormatter.php - Returns a form to configure settings for the formatter.
- 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 267
Class
- BaguetteboxFormatter
- Plugin implementation of the 'baguettebox' formatter.
Namespace
Drupal\baguettebox\Plugin\Field\FieldFormatterCode
protected function captionsSourceOptions() {
return [
'none' => $this
->t('None'),
'image_title' => $this
->t('Image title attribute'),
'image_alt' => $this
->t('Image alt attribute'),
];
}