You are here

public static function Blazy::commonAttributes in Blazy 8.2

Provide common attributes for IMG, IFRAME, VIDEO, DIV, etc. elements.

2 calls to Blazy::commonAttributes()
Blazy::iframeAttributes in src/Blazy.php
Returns common iframe attributes, including those not handled by blazy.
Blazy::imageAttributes in src/Blazy.php
Modifies $variables to provide optional (Responsive) image attributes.

File

src/Blazy.php, line 273

Class

Blazy
Provides common blazy utility static methods.

Namespace

Drupal\blazy

Code

public static function commonAttributes(array &$attributes, array $settings = []) {
  $attributes['class'][] = 'media__element';
}