You are here

public function ResponsiveImageStyle::getImageStyleMappings in Drupal 8

Same name and namespace in other branches
  1. 9 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 162

Class

ResponsiveImageStyle
Defines the responsive image style entity.

Namespace

Drupal\responsive_image\Entity

Code

public function getImageStyleMappings() {
  return $this->image_style_mappings;
}