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

public function getEffects() {
  if (!$this->effectsCollection) {
    $this->effectsCollection = new ImageEffectPluginCollection($this->getImageEffectPluginManager(), $this->effects);
    $this->effectsCollection->sort();
  }
  return $this->effectsCollection;
}
doc_Drupal
2016-10-29 09:19:31
Comments
Leave a Comment

Please login to continue.