class ImageEffectManager

Same name and namespace in other branches
  1. 11.x core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager
  2. 10 core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager
  3. 8.9.x core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager

Manages image effect plugins.

Hierarchy

Expanded class hierarchy of ImageEffectManager

See also

hook_image_effect_info_alter()

\Drupal\image\Annotation\ImageEffect

\Drupal\image\ConfigurableImageEffectInterface

\Drupal\image\ConfigurableImageEffectBase

\Drupal\image\ImageEffectInterface

\Drupal\image\ImageEffectBase

Plugin API

2 files declare their use of ImageEffectManager
ImageEffectAddForm.php in core/modules/image/src/Form/ImageEffectAddForm.php
ImageStyleEditForm.php in core/modules/image/src/Form/ImageStyleEditForm.php
1 string reference to 'ImageEffectManager'
image.services.yml in core/modules/image/image.services.yml
core/modules/image/image.services.yml
1 service uses ImageEffectManager
plugin.manager.image.effect in core/modules/image/image.services.yml
Drupal\image\ImageEffectManager

File

core/modules/image/src/ImageEffectManager.php, line 20

Namespace

Drupal\image
View source
class ImageEffectManager extends DefaultPluginManager {
  
  /**
   * Constructs a new ImageEffectManager.
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations.
   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
   *   Cache backend instance to use.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   The module handler.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/ImageEffect', $namespaces, $module_handler, 'Drupal\\image\\ImageEffectInterface', 'Drupal\\image\\Annotation\\ImageEffect');
    $this->alterInfo('image_effect_info');
    $this->setCacheBackend($cache_backend, 'image_effect_plugins');
  }

}

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