You are here

public static function BlazyDefault::themeProperties in Blazy 8.2

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

Returns blazy theme properties, its image and container attributes.

The reserved attributes is defined before entering Blazy as bonus variable. Consider other bonuses: title and content attributes at a later stage.

2 calls to BlazyDefault::themeProperties()
Blazy::preprocessBlazy in src/Blazy.php
Prepares variables for blazy.html.twig templates.
BlazyManager::getBlazy in src/BlazyManager.php
Returns the enforced rich media content, or media using theme_blazy().

File

src/BlazyDefault.php, line 272

Class

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

Namespace

Drupal\blazy

Code

public static function themeProperties() {
  return [
    'attributes',
    'captions',
    'content',
    'iframe',
    'image',
    'icon',
    'item',
    'item_attributes',
    'noscript',
    'overlay',
    'preface',
    'postscript',
    'settings',
    'url',
  ];
}