You are here

public function ResponsiveImageStyle::removeImageStyleMappings in Zircon Profile 8

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

Removes all image style mappings from the responsive image style.

Return value

$this

Overrides ResponsiveImageStyleInterface::removeImageStyleMappings

1 call to ResponsiveImageStyle::removeImageStyleMappings()
ResponsiveImageStyle::setBreakpointGroup in core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php
Sets the breakpoint group for the responsive image style.

File

core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 195
Contains \Drupal\responsive_image\Entity\ResponsiveImageStyle.

Class

ResponsiveImageStyle
Defines the responsive image style entity.

Namespace

Drupal\responsive_image\Entity

Code

public function removeImageStyleMappings() {
  $this->image_style_mappings = array();
  $this->keyedImageStyleMappings = NULL;
  return $this;
}