You are here

private function ColorboxFieldFormatter::getLinkTypes in Colorbox field formatter 2.0.x

Same name and namespace in other branches
  1. 8 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 366

Class

ColorboxFieldFormatter
Plugin implementation of the 'colorbox_field_formatter' formatter.

Namespace

Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatter

Code

private function getLinkTypes() : array {
  return [
    'content' => $this
      ->t('Content'),
    'manual' => $this
      ->t('Manually provide a link'),
  ];
}