You are here

public static function BlazyDefault::themeAttributes in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::themeAttributes()
  2. 7 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::themeAttributes()

Returns additional/ optional blazy theme attributes.

The attributes mentioned here are only instantiated at theme_blazy() and might be an empty array, not instanceof \Drupal\Core\Template\Attribute.

1 call to BlazyDefault::themeAttributes()
Blazy::buildAttributes in src/Blazy.php
Prepares variables for blazy.html.twig templates.

File

src/BlazyDefault.php, line 241

Class

BlazyDefault
Defines shared plugin default settings for field formatter and Views style.

Namespace

Drupal\blazy

Code

public static function themeAttributes() {
  return [
    'caption',
    'media',
    'url',
    'wrapper',
  ];
}