You are here

public function ImageEffectInterface::applyEffect in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/ImageEffectInterface.php \Drupal\image\ImageEffectInterface::applyEffect()
  2. 9 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.

3 methods override ImageEffectInterface::applyEffect()
AjaxTestImageEffect::applyEffect in core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/AjaxTestImageEffect.php
Applies an image effect to the image object.
NullTestImageEffect::applyEffect in core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/NullTestImageEffect.php
Applies an image effect to the image object.
UriDependentTestImageEffect::applyEffect in core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/UriDependentTestImageEffect.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\image

Code

public function applyEffect(ImageInterface $image);