public ImageStyle::getEffects()
Returns the image effects for this style.
Return value
\Drupal\image\ImageEffectPluginCollection|\Drupal\image\ImageEffectInterface[] The image effect plugin collection.
Overrides ImageStyleInterface::getEffects
File
- core/modules/image/src/Entity/ImageStyle.php, line 353
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\Entity
Code
public function getEffects() { if (!$this->effectsCollection) { $this->effectsCollection = new ImageEffectPluginCollection($this->getImageEffectPluginManager(), $this->effects); $this->effectsCollection->sort(); } return $this->effectsCollection; }
Please login to continue.