public function ResponsiveImageStyleInterface::addImageStyleMapping in Drupal 10
Same name and namespace in other branches
- 8 core/modules/responsive_image/src/ResponsiveImageStyleInterface.php \Drupal\responsive_image\ResponsiveImageStyleInterface::addImageStyleMapping()
- 9 core/modules/responsive_image/src/ResponsiveImageStyleInterface.php \Drupal\responsive_image\ResponsiveImageStyleInterface::addImageStyleMapping()
Adds an image style mapping to the responsive image configuration entity.
Parameters
string $breakpoint_id: The breakpoint ID.
string $multiplier: The multiplier.
array $image_style_mapping: The mapping image style mapping.
Return value
$this
1 method overrides ResponsiveImageStyleInterface::addImageStyleMapping()
- ResponsiveImageStyle::addImageStyleMapping in core/
modules/ responsive_image/ src/ Entity/ ResponsiveImageStyle.php - Adds an image style mapping to the responsive image configuration entity.
File
- core/
modules/ responsive_image/ src/ ResponsiveImageStyleInterface.php, line 143
Class
- ResponsiveImageStyleInterface
- Provides an interface defining a responsive_image mapping entity.
Namespace
Drupal\responsive_imageCode
public function addImageStyleMapping($breakpoint_id, $multiplier, array $image_style_mapping);