You are here

protected function BlazyFormatterBlazy::getCaption in Blazy 7

Returns the captions.

1 call to BlazyFormatterBlazy::getCaption()
BlazyFormatterBlazy::buildElements in src/Plugin/Field/FieldFormatter/BlazyFormatterBlazy.php
Build the Blazy elements for image and file entity/ media.
2 methods override BlazyFormatterBlazy::getCaption()
BlazyFileFormatter::getCaption in src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php
Returns the captions.
BlazyImageFormatter::getCaption in src/Plugin/Field/FieldFormatter/BlazyImageFormatter.php
Returns the captions.

File

src/Plugin/Field/FieldFormatter/BlazyFormatterBlazy.php, line 111

Class

BlazyFormatterBlazy
Plugin implementation of the `Blazy File` or `Blazy Image` for Blazy only.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

protected function getCaption($entity, $field_name, $settings) {
  return [];
}