You are here

public static function BlazyDefault::themeProperties in Blazy 8

Same name and namespace in other branches
  1. 8.2 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 mentioned here might be instantiated as an instanceof \Drupal\Core\Template\Attribute before entering Blazy.

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

File

src/BlazyDefault.php, line 223

Class

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

Namespace

Drupal\blazy

Code

public static function themeProperties() {
  return [
    'attributes',
    'captions',
    'image',
    'item',
    'item_attributes',
    'settings',
    'url',
  ];
}