class ImageEffectManager
Same name and namespace in other branches
- 11.x core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager
- 10 core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager
- 8.9.x core/modules/image/src/ImageEffectManager.php \Drupal\image\ImageEffectManager
Manages image effect plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase implements \Drupal\Component\Plugin\PluginManagerInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryTrait
- class \Drupal\Core\Plugin\DefaultPluginManager implements \Drupal\Component\Plugin\PluginManagerInterface, \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait, \Drupal\Core\Cache\UseCacheBackendTrait extends \Drupal\Component\Plugin\PluginManagerBase
- class \Drupal\image\ImageEffectManager extends \Drupal\Core\Plugin\DefaultPluginManager
- class \Drupal\Core\Plugin\DefaultPluginManager implements \Drupal\Component\Plugin\PluginManagerInterface, \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait, \Drupal\Core\Cache\UseCacheBackendTrait extends \Drupal\Component\Plugin\PluginManagerBase
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
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\imageView 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.