function responsive_image_theme

Same name in other branches
  1. 9 core/modules/responsive_image/responsive_image.module \responsive_image_theme()
  2. 8.9.x core/modules/responsive_image/responsive_image.module \responsive_image_theme()
  3. 11.x core/modules/responsive_image/responsive_image.module \responsive_image_theme()

Implements hook_theme().

File

core/modules/responsive_image/responsive_image.module, line 57

Code

function responsive_image_theme() {
    return [
        'responsive_image' => [
            'variables' => [
                'uri' => NULL,
                'attributes' => [],
                'responsive_image_style_id' => [],
                'height' => NULL,
                'width' => NULL,
            ],
        ],
        'responsive_image_formatter' => [
            'variables' => [
                'item' => NULL,
                'item_attributes' => NULL,
                'url' => NULL,
                'responsive_image_style_id' => NULL,
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.