You are here

public static function BlazyBreakpointInterface::attributes in Blazy 7

Provides re-usable breakpoint data-attributes.

These attributes can be applied to either IMG or DIV as CSS background.

$settings['breakpoints'] must contain: xs, sm, md, lg breakpoints with the expected keys: width, image_style.

Parameters

array $attributes: The attributes being modified.

array $settings: The given settings being modified.

object $item: The image item.

See also

Blazy::preprocessBlazy()

1 method overrides BlazyBreakpointInterface::attributes()
BlazyBreakpoint::attributes in src/BlazyBreakpoint.php
Provides re-usable breakpoint data-attributes for IMG or DIV element.

File

src/BlazyBreakpointInterface.php, line 27

Class

BlazyBreakpointInterface
Defines methods for custom breakpoints.

Namespace

Drupal\blazy

Code

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