You are here

public function FontSelectionImageEffect::applyEffect in Image Effects 8

Same name and namespace in other branches
  1. 8.3 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::applyEffect()
  2. 8.2 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::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.

Overrides ImageEffectInterface::applyEffect

File

tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php, line 95

Class

FontSelectionImageEffect
Image effect that relies on a font URI selected via the font selector plugin.

Namespace

Drupal\image_effects_module_test\Plugin\ImageEffect

Code

public function applyEffect(ImageInterface $image) {
  return TRUE;
}