diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index 537c524..7637230 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -81,7 +81,12 @@ function responsive_image_theme() { ), ), 'responsive_image_formatter' => array( - 'variables' => array('item' => NULL, 'item_attributes' => NULL, 'url' => NULL, 'responsive_image_style_id' => NULL), + 'variables' => array( + 'item' => NULL, + 'item_attributes' => NULL, + 'url' => NULL, + 'responsive_image_style_id' => NULL, + ), ), ); } @@ -94,9 +99,9 @@ function responsive_image_theme() { * @param array $variables * An associative array containing: * - item: An ImageItem object. - * - item_attributes: An optional associative array of html attributes to be + * - item_attributes: An optional associative array of HTML attributes to be * placed in the img tag. - * - responsive_image_style_id: An responsive image style. + * - responsive_image_style_id: A responsive image style. * - url: An optional \Drupal\Core\Url object. */ function template_preprocess_responsive_image_formatter(&$variables) { diff --git a/core/modules/responsive_image/templates/responsive-image-formatter.html.twig b/core/modules/responsive_image/templates/responsive-image-formatter.html.twig index 820b221..93caba8 100644 --- a/core/modules/responsive_image/templates/responsive-image-formatter.html.twig +++ b/core/modules/responsive_image/templates/responsive-image-formatter.html.twig @@ -1,7 +1,7 @@ {# /** * @file - * Responsive theme implementation to display a formatted image field. + * Default theme implementation to display a formatted responsive image field. * * Available variables: * - responsive_image: A collection of responsive image data.