function responsive_image_theme

responsive_image_theme()

Implements hook_theme().

File

core/modules/responsive_image/responsive_image.module, line 61
Responsive image display formatter for image fields.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!responsive_image!responsive_image.module/function/responsive_image_theme/8.1.x