/** * {@inheritdoc} */ public function getEffects() { if (!$this->effectsBag) { $this->effectsBag = new ImageEffectBag(\Drupal::service('plugin.manager.image.effect'), $this->effects); $this->effectsBag->sort(); } return $this->effectsBag; }
/** * {@inheritdoc} */ public function getEffects() { if (!$this->effectsBag) { $this->effectsBag = new ImageEffectBag($this->getImageEffectPluginManager(), $this->effects); $this->effectsBag->sort(); } return $this->effectsBag; }