function ImageEffectInterface::applyEffect
Same name and namespace in other branches
- 11.x core/modules/image/src/ImageEffectInterface.php \Drupal\image\ImageEffectInterface::applyEffect()
- 10 core/modules/image/src/ImageEffectInterface.php \Drupal\image\ImageEffectInterface::applyEffect()
- 8.9.x core/modules/image/src/ImageEffectInterface.php \Drupal\image\ImageEffectInterface::applyEffect()
Applies an image effect to the image object.
Parameters
\Drupal\Core\Image\ImageInterface $image: An image file object.
Return value
bool TRUE on success. FALSE if unable to perform the image effect on the image.
1 method overrides ImageEffectInterface::applyEffect()
- ResizeImageEffect::applyEffect in core/
modules/ image/ src/ Plugin/ ImageEffect/ ResizeImageEffect.php - Applies an image effect to the image object.
File
-
core/
modules/ image/ src/ ImageEffectInterface.php, line 31
Class
- ImageEffectInterface
- Defines the interface for image effects.
Namespace
Drupal\imageCode
public function applyEffect(ImageInterface $image);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.