public function Textimage::setEffects in Textimage 8.4
Same name and namespace in other branches
- 8.3 src/Textimage.php \Drupal\textimage\Textimage::setEffects()
Set the image effects.
Parameters
array $effects: An array of image effects. Since Textimage manipulates effects before rendering the image, the style effects are copied here to allow that.
Return value
$this
Overrides TextimageInterface::setEffects
1 call to Textimage::setEffects()
- Textimage::setStyle in src/
Textimage.php - Set the image style.
File
- src/
Textimage.php, line 310
Class
- Textimage
- Provides a Textimage.
Namespace
Drupal\textimageCode
public function setEffects(array $effects) {
if ($this->effects) {
throw new TextimageException("Image effects already set");
}
return $this
->set('effects', $effects);
}