function ResponsiveImageStyle::removeImageStyleMappings

Same name and namespace in other branches
  1. 10 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::removeImageStyleMappings()
  2. 11.x core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::removeImageStyleMappings()
  3. 9 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::removeImageStyleMappings()

File

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

Class

ResponsiveImageStyle
Defines the responsive image style entity.

Namespace

Drupal\responsive_image\Entity

Code

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

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