private function ColorboxFieldFormatter::getLinkTypes in Colorbox field formatter 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/ColorboxFieldFormatter.php \Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatter\ColorboxFieldFormatter::getLinkTypes()
Callback to provide an arry for a select field containing all link types.
Return value
array
2 calls to ColorboxFieldFormatter::getLinkTypes()
- ColorboxFieldFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatter.php - Returns a form to configure settings for the formatter.
- ColorboxFieldFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatter.php, line 356
Class
- ColorboxFieldFormatter
- Plugin implementation of the 'colorbox_field_formatter' formatter.
Namespace
Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatterCode
private function getLinkTypes() : array {
return [
'content' => $this
->t('Content'),
'manual' => $this
->t('Manually provide a link'),
];
}