You are here

public function BlazyFormatterInterface::preBuildElements in Blazy 7

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

Modifies the field formatter settings inherited by child elements.

Parameters

array $build: The array containing: settings, or potential optionset for extensions.

object $items: The Drupal\Core\Field\FieldItemListInterface items.

object $entity: The entity this field belongs to.

array $entities: The optional entities array, not available for non-entities: text, image.

File

src/BlazyFormatterInterface.php, line 34

Class

BlazyFormatterInterface
Defines common field formatter-related methods: Blazy, Slick.

Namespace

Drupal\blazy

Code

public function preBuildElements(array &$build, $items, $entity, array $entities = []);