You are here

public function InsertLinkedEffect::applyEffect in Insert 8

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

src/Plugin/ImageEffect/InsertLinkedEffect.php, line 24

Class

InsertLinkedEffect
The effect does not alter images in any way. Its purpose is to just identify images that shall be wrapped in links to their corresponding original sized images when inserting images using the Insert button.

Namespace

Drupal\insert\Plugin\ImageEffect

Code

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