protected function BlazyFileFormatter::getCaption in Blazy 7
Returns the captions.
Overrides BlazyFormatterBlazy::getCaption
File
- src/
Plugin/ Field/ FieldFormatter/ BlazyFileFormatter.php, line 60
Class
- BlazyFileFormatter
- Plugin implementation of the 'Blazy File' to get videos within images/files.
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterCode
protected function getCaption($entity, $field_name, $settings) {
return $this
->blazyEntity()
->getFieldRenderable($entity, $field_name, $settings, TRUE);
}