You are here

public function BlazyFormatterManager::postBuildElements in Blazy 8

Backported few cross-module methods to minimize mismatched branch issues.

File

src/BlazyFormatterManager.php, line 125

Class

BlazyFormatterManager
Provides common field formatter-related methods: Blazy, Slick.

Namespace

Drupal\blazy

Code

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

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