ImageStyle::deleteImageEffect

public ImageStyle::deleteImageEffect(ImageEffectInterface $effect)

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 337

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

public function deleteImageEffect(ImageEffectInterface $effect) {
  $this->getEffects()->removeInstanceId($effect->getUuid());
  $this->save();
  return $this;
}
doc_Drupal
2016-10-29 09:19:29
Comments
Leave a Comment

Please login to continue.