You are here

public function BlazyAdminBase::getLightboxCaptionOptions in Blazy 8.2

Returns available lightbox captions for select options.

1 call to BlazyAdminBase::getLightboxCaptionOptions()
BlazyAdminBase::mediaSwitchForm in src/Form/BlazyAdminBase.php
Returns re-usable media switch form elements.

File

src/Form/BlazyAdminBase.php, line 640

Class

BlazyAdminBase
A base for blazy admin integration to have re-usable methods in one place.

Namespace

Drupal\blazy\Form

Code

public function getLightboxCaptionOptions() {
  return [
    'auto' => $this
      ->t('Automatic'),
    'alt' => $this
      ->t('Alt text'),
    'title' => $this
      ->t('Title text'),
    'alt_title' => $this
      ->t('Alt and Title'),
    'title_alt' => $this
      ->t('Title and Alt'),
    'entity_title' => $this
      ->t('Content title'),
    'custom' => $this
      ->t('Custom'),
  ];
}