public static function BlazyDefault::themeAttributes in Blazy 8.2
Same name and namespace in other branches
- 8 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::themeAttributes()
- 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.
2 calls to BlazyDefault::themeAttributes()
- Blazy::preprocessBlazy in src/
Blazy.php - Prepares variables for blazy.html.twig templates.
- BlazyManager::prepareBlazy in src/
BlazyManager.php - Prepares the Blazy output as a structured array ready for ::renderer().
File
- src/
BlazyDefault.php, line 297
Class
- BlazyDefault
- Defines shared plugin default settings for field formatter and Views style.
Namespace
Drupal\blazyCode
public static function themeAttributes() {
return [
'caption',
'media',
'url',
'wrapper',
];
}