You are here

public function BlazyFormatter::postBuildElements in Blazy 7

Same name and namespace in other branches
  1. 8.2 src/BlazyFormatter.php \Drupal\blazy\BlazyFormatter::postBuildElements()

File

src/BlazyFormatter.php, line 132

Class

BlazyFormatter
Implements BlazyFormatterInterface.

Namespace

Drupal\blazy

Code

public function postBuildElements(array &$build, $items, $entity, array $entities = []) {

  // Rebuild the first item to build colorbox/zoom-like gallery.
  $build['settings']['first_item'] = $this->firstItem;
}