You are here

public static function BlazyBreakpointInterface::buildDataBlazy in Blazy 7

Builds breakpoints suitable for top-level [data-blazy] wrapper attributes.

The hustle is because we need to define dimensions once, if applicable, and let all images inherit. Each breakpoint image may be cropped, or scaled without a crop. To set dimensions once requires all breakpoint images uniformly cropped. But that is not always the case.

Parameters

array $settings: The settings being modified.

object $item: The image item.

1 method overrides BlazyBreakpointInterface::buildDataBlazy()
BlazyBreakpoint::buildDataBlazy in src/BlazyBreakpoint.php
Builds breakpoints suitable for top-level [data-blazy] wrapper attributes.

File

src/BlazyBreakpointInterface.php, line 50

Class

BlazyBreakpointInterface
Defines methods for custom breakpoints.

Namespace

Drupal\blazy

Code

public static function buildDataBlazy(array &$settings, $item = NULL);