Drupal 8  8.0.2
ImageToolkitOperationManager Class Reference
Inheritance diagram for ImageToolkitOperationManager:

Public Member Functions

 __construct (\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, LoggerInterface $logger)
 
 createInstance ($plugin_id, array $configuration=array(), ImageToolkitInterface $toolkit=NULL)
 
 getToolkitOperation (ImageToolkitInterface $toolkit, $operation)
 
- Public Member Functions inherited from DefaultPluginManager
 __construct ($subdir,\Traversable $namespaces, ModuleHandlerInterface $module_handler, $plugin_interface=NULL, $plugin_definition_annotation_name= 'Drupal\Component\Annotation\Plugin')
 
 setCacheBackend (CacheBackendInterface $cache_backend, $cache_key, array $cache_tags=array())
 
 getDefinitions ()
 
 clearCachedDefinitions ()
 
 useCaches ($use_caches=FALSE)
 
 processDefinition (&$definition, $plugin_id)
 
- Public Member Functions inherited from PluginManagerBase
 getDefinition ($plugin_id, $exception_on_invalid=TRUE)
 
 getDefinitions ()
 
 createInstance ($plugin_id, array $configuration=array())
 
 getInstance (array $options)
 
- Public Member Functions inherited from DiscoveryInterface
 hasDefinition ($plugin_id)
 

Protected Member Functions

 getToolkitOperationPluginId ($toolkit_id, $operation)
 
- Protected Member Functions inherited from DefaultPluginManager
 alterInfo ($alter_hook)
 
 getCachedDefinitions ()
 
 setCachedDefinitions ($definitions)
 
 getDiscovery ()
 
 getFactory ()
 
 findDefinitions ()
 
 alterDefinitions (&$definitions)
 
 providerExists ($provider)
 
- Protected Member Functions inherited from PluginManagerBase
 getDiscovery ()
 
 getFactory ()
 

Protected Attributes

 $logger
 
- Protected Attributes inherited from DefaultPluginManager
 $cacheKey
 
 $cacheTags = array()
 
 $alterHook
 
 $subdir
 
 $moduleHandler
 
 $defaults = array()
 
 $pluginDefinitionAnnotationName
 
 $pluginInterface
 
 $namespaces
 
- Protected Attributes inherited from PluginManagerBase
 $discovery
 
 $factory
 
 $mapper
 

Detailed Description

Manages toolkit operation plugins.

See Also
Plugin API

Constructor & Destructor Documentation

__construct ( \Traversable  $namespaces,
CacheBackendInterface  $cache_backend,
ModuleHandlerInterface  $module_handler,
LoggerInterface  $logger 
)

Constructs the ImageToolkitOperationManager object.

Parameters
\Traversable$namespacesAn object that implements which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface$cache_backendCache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler to invoke the alter hook with.
\Psr\Log\LoggerInterface$loggerA logger instance.

References DefaultPluginManager\alterInfo(), Drupal\logger(), and DefaultPluginManager\setCacheBackend().

Here is the call graph for this function:

Member Function Documentation

createInstance (   $plugin_id,
array  $configuration = array(),
ImageToolkitInterface  $toolkit = NULL 
)

{}

References PluginManagerBase\getDefinition(), DefaultFactory\getPluginClass(), and Drupal\logger().

Referenced by ImageToolkitOperationManager\getToolkitOperation().

Here is the call graph for this function:

Here is the caller graph for this function:

getToolkitOperation ( ImageToolkitInterface  $toolkit,
  $operation 
)

{Returns a toolkit operation plugin instance.

Parameters
\Drupal\Core\ImageToolkit\ImageToolkitInterface$toolkitThe toolkit instance.
string$operationThe operation (e.g. "crop").
Returns
An instance of the requested toolkit operation plugin.
Exceptions
\Drupal\Component\Plugin\Exception\PluginNotFoundExceptionWhen no plugin is available.
}

Implements ImageToolkitOperationManagerInterface.

References ImageToolkitOperationManager\createInstance(), PluginInspectionInterface\getPluginId(), and ImageToolkitOperationManager\getToolkitOperationPluginId().

Here is the call graph for this function:

getToolkitOperationPluginId (   $toolkit_id,
  $operation 
)
protected

Returns the plugin ID for a given toolkit and operation.

Parameters
string$toolkit_idThe toolkit plugin ID.
string$operationThe operation (e.g. "crop").
Returns
string The plugin ID.
Exceptions
\Drupal\Component\Plugin\Exception\PluginNotFoundExceptionWhen no plugin is available.

References SafeMarkup\format(), and DefaultPluginManager\getDefinitions().

Referenced by ImageToolkitOperationManager\getToolkitOperation().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: