You are here

public static function BlazyInterface::lazyAttributes in Blazy 8.2

Defines attributes, builtin, or supported lazyload such as Slick.

These attributes can be applied to either IMG or DIV as CSS background. The [data-(src|lazy)] attributes are applivable for (Responsive) image. While [data-src] is reserved by Blazy, [data-lazy] by Slick.

Parameters

array $attributes: The attributes being modified.

array $settings: The given settings.

1 method overrides BlazyInterface::lazyAttributes()
Blazy::lazyAttributes in src/Blazy.php
Defines attributes, builtin, or supported lazyload such as Slick.

File

src/BlazyInterface.php, line 107

Class

BlazyInterface
Provides common blazy utility static methods.

Namespace

Drupal\blazy

Code

public static function lazyAttributes(array &$attributes, array $settings = []);