You are here

protected function VideoEmbedField::getGalleryTypes in Magnific Popup 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/VideoEmbedField.php \Drupal\magnific_popup\Plugin\Field\FieldFormatter\VideoEmbedField::getGalleryTypes()

Get an array of gallery types.

Return value

array An array of gallery types for use in display settings.

1 call to VideoEmbedField::getGalleryTypes()
VideoEmbedField::settingsForm in src/Plugin/Field/FieldFormatter/VideoEmbedField.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/VideoEmbedField.php, line 198

Class

VideoEmbedField
Magnific Popup FieldFormatter for Video Embed Field.

Namespace

Drupal\magnific_popup\Plugin\Field\FieldFormatter

Code

protected function getGalleryTypes() {
  return [
    'all_items' => $this
      ->t('Gallery: All Items Displayed'),
    'first_item' => $this
      ->t('Gallery: First Item Displayed'),
    'separate_items' => $this
      ->t('No Gallery: Display Each Item Separately'),
  ];
}