Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageStyle.php

function 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 410

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal