ImageStyle::getEffects

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

1
2
3
4
5
6
7
public function getEffects() {
  if (!$this->effectsCollection) {
    $this->effectsCollection = new ImageEffectPluginCollection($this->getImageEffectPluginManager(), $this->effects);
    $this->effectsCollection->sort();
  }
  return $this->effectsCollection;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.