Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResponsiveImageHooks.php

function ResponsiveImageHooks::theme

Implements hook_theme().

File

core/modules/responsive_image/src/Hook/ResponsiveImageHooks.php, line 73

Class

ResponsiveImageHooks
Hook implementations for responsive_image.

Namespace

Drupal\responsive_image\Hook

Code

public function theme() : array {
    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,
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal