function ResponsiveImageStyleInterface::addImageStyleMapping

Same name in other branches
  1. 8.9.x core/modules/responsive_image/src/ResponsiveImageStyleInterface.php \Drupal\responsive_image\ResponsiveImageStyleInterface::addImageStyleMapping()
  2. 10 core/modules/responsive_image/src/ResponsiveImageStyleInterface.php \Drupal\responsive_image\ResponsiveImageStyleInterface::addImageStyleMapping()
  3. 11.x 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_image

Code

public function addImageStyleMapping($breakpoint_id, $multiplier, array $image_style_mapping);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.