protected function SlickFileFormatter::getCaption in Slick Carousel 7.3
Build caption element if so configured can be used for thumbnail caption.
Overrides SlickFormatterBase::getCaption
1 call to SlickFileFormatter::getCaption()
- SlickFileFormatter::buildElement in src/
Plugin/ Field/ FieldFormatter/ SlickFileFormatter.php - Build individual item if so configured such as for file entity goodness.
File
- src/
Plugin/ Field/ FieldFormatter/ SlickFileFormatter.php, line 176
Class
- SlickFileFormatter
- Plugin implementation of the 'Slick File' formatter for Media integration.
Namespace
Drupal\slick\Plugin\Field\FieldFormatterCode
protected function getCaption($entity, $field_name, $settings) {
return $this
->blazyEntity()
->getFieldRenderable($entity, $field_name, $settings, TRUE);
}