You are here

public function BlazyEntityReferenceBase::getOverlay in Blazy 8.2

Same name and namespace in other branches
  1. 8 src/Dejavu/BlazyEntityReferenceBase.php \Drupal\blazy\Dejavu\BlazyEntityReferenceBase::getOverlay()

Builds overlay placed within the caption.

1 call to BlazyEntityReferenceBase::getOverlay()
BlazyEntityReferenceBase::getCaption in src/Dejavu/BlazyEntityReferenceBase.php
Builds slide captions with possible multi-value fields.

File

src/Dejavu/BlazyEntityReferenceBase.php, line 91

Class

BlazyEntityReferenceBase
Base class for all entity reference formatters with field details.

Namespace

Drupal\blazy\Dejavu

Code

public function getOverlay(array $settings, $entity, $langcode) {
  return $entity
    ->get($settings['overlay'])
    ->view($settings['view_mode']);
}