You are here

public function ResponsiveImageStyleInterface::addImageStyleMapping in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/responsive_image/src/ResponsiveImageStyleInterface.php \Drupal\responsive_image\ResponsiveImageStyleInterface::addImageStyleMapping()

Adds a 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 a image style mapping to the responsive image configuration entity.

File

core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 138
Contains \Drupal\responsive_image\ResponsiveImageStyleInterface.

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);