function ResponsiveImageStyle::getImageStyleMappings
Same name and namespace in other branches
- 9 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::getImageStyleMappings()
- 8.9.x core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::getImageStyleMappings()
- 11.x core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::getImageStyleMappings()
Returns the image style mappings for the responsive image style.
Return value
array[] An array of image style mappings. Each image style mapping array contains the following keys:
- breakpoint_id
- multiplier
- image_mapping_type
- image_mapping
Overrides ResponsiveImageStyleInterface::getImageStyleMappings
1 call to ResponsiveImageStyle::getImageStyleMappings()
- ResponsiveImageStyle::getImageStyleIds in core/
modules/ responsive_image/ src/ Entity/ ResponsiveImageStyle.php - Gets all the image styles IDs involved in the responsive image mapping.
File
-
core/
modules/ responsive_image/ src/ Entity/ ResponsiveImageStyle.php, line 191
Class
- ResponsiveImageStyle
- Defines the responsive image style entity.
Namespace
Drupal\responsive_image\EntityCode
public function getImageStyleMappings() {
return $this->image_style_mappings;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.