responsive_image.module

Responsive image display formatter for image fields.

File

core/modules/responsive_image/responsive_image.module

Functions

Name Description
responsive_image_build_source_attributes Helper function for template_preprocess_responsive_image().
responsive_image_get_image_dimensions Determines the dimensions of an image.
responsive_image_get_mime_type Determines the MIME type of an image.
responsive_image_help Implements hook_help().
responsive_image_library_info_alter Implements hook_library_info_alter().
responsive_image_theme Implements hook_theme().
template_preprocess_responsive_image Prepares variables for a responsive image.
template_preprocess_responsive_image_formatter Prepares variables for responsive image formatter templates.
_responsive_image_image_style_url Wrapper around image_style_url() so we can return an empty image.

Constants

Name Description
RESPONSIVE_IMAGE_EMPTY_IMAGE The machine name for the empty image breakpoint image style option.
RESPONSIVE_IMAGE_ORIGINAL_IMAGE

© 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/8.1.x