You are here

public function TextOverlayImageEffect::getAlteredText in Image Effects 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/ImageEffect/TextOverlayImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\TextOverlayImageEffect::getAlteredText()
  2. 8.2 src/Plugin/ImageEffect/TextOverlayImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\TextOverlayImageEffect::getAlteredText()

Gets the text to overlay on the image, after all alterations.

Parameters

string $text: The text to be altered.

Return value

string The text after alteration by modules.

1 call to TextOverlayImageEffect::getAlteredText()
TextOverlayImageEffect::getTextWrapper in src/Plugin/ImageEffect/TextOverlayImageEffect.php
Get the image containing the text.

File

src/Plugin/ImageEffect/TextOverlayImageEffect.php, line 919

Class

TextOverlayImageEffect
Overlays text on the image, defining text font, size and positioning.

Namespace

Drupal\image_effects\Plugin\ImageEffect

Code

public function getAlteredText($text) {
  $this->moduleHandler
    ->alter('image_effects_text_overlay_text', $text, $this);
  return $text;
}