function ImageStyle::getEffects

Same name in other branches
  1. 8.9.x core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getEffects()
  2. 10 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getEffects()
  3. 11.x core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getEffects()

Overrides ImageStyleInterface::getEffects

4 calls to ImageStyle::getEffects()
ImageStyle::createDerivative in core/modules/image/src/Entity/ImageStyle.php
Creates a new image derivative based on this image style.
ImageStyle::getDerivativeExtension in core/modules/image/src/Entity/ImageStyle.php
Determines the extension of the derivative without generating it.
ImageStyle::getPluginCollections in core/modules/image/src/Entity/ImageStyle.php
ImageStyle::transformDimensions in core/modules/image/src/Entity/ImageStyle.php
Determines the dimensions of this image style.

File

core/modules/image/src/Entity/ImageStyle.php, line 400

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.