ResponsiveImageStyle::removeImageStyleMappings

public ResponsiveImageStyle::removeImageStyleMappings()

Removes all image style mappings from the responsive image style.

Return value

$this

Overrides ResponsiveImageStyleInterface::removeImageStyleMappings

File

core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 190

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;
}
doc_Drupal
2016-10-29 09:38:01
Comments
Leave a Comment

Please login to continue.