You are here

protected function MagnificPopup::getVerticalFit in Magnific Popup 8

Get an array of vertical fit values.

Return value

array An array of values settings.

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

File

src/Plugin/Field/FieldFormatter/MagnificPopup.php, line 174

Class

MagnificPopup
Magnific Popup field formatter.

Namespace

Drupal\magnific_popup\Plugin\Field\FieldFormatter

Code

protected function getVerticalFit() {
  return [
    'true' => 'Fit image vertically (suitable for most images)',
    'false' => 'Fit image horizontally (suitable for very tall images)',
  ];
}