public function ImageStyle::deleteImageEffect in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::deleteImageEffect()
- 9 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::deleteImageEffect()
Deletes an image effect from this style.
Parameters
\Drupal\image\ImageEffectInterface $effect: The image effect object.
Return value
$this
Overrides ImageStyleInterface::deleteImageEffect
File
- core/
modules/ image/ src/ Entity/ ImageStyle.php, line 372
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\EntityCode
public function deleteImageEffect(ImageEffectInterface $effect) {
$this
->getEffects()
->removeInstanceId($effect
->getUuid());
$this
->save();
return $this;
}