Drupal 8  8.0.2
TestPluginManager Class Reference
Inheritance diagram for TestPluginManager:

Public Member Functions

 __construct (\Traversable $namespaces, array $definitions, ModuleHandlerInterface $module_handler=NULL, $alter_hook=NULL, $interface=NULL)
 
- 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)
 

Additional Inherited Members

- 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 inherited from DefaultPluginManager
 $cacheKey
 
 $cacheTags = array()
 
 $alterHook
 
 $subdir
 
 $moduleHandler
 
 $defaults = array()
 
 $pluginDefinitionAnnotationName
 
 $pluginInterface
 
 $namespaces
 
- Protected Attributes inherited from PluginManagerBase
 $discovery
 
 $factory
 
 $mapper
 

Detailed Description

A plugin manager for condition plugins.

Constructor & Destructor Documentation

__construct ( \Traversable  $namespaces,
array  $definitions,
ModuleHandlerInterface  $module_handler = NULL,
  $alter_hook = NULL,
  $interface = NULL 
)

Constructs a TestPluginManager object.

Parameters
\Traversable$namespacesAn object that implements which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
array$definitionsAn array of static definitions.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handler(optional) The module handler to invoke the alter hook with.
string$alter_hook(optional) Name of the alter hook.
string$interface(optional) The interface required for the plugins.

References DefaultPluginManager\alterInfo(), and Drupal\moduleHandler().

Here is the call graph for this function:


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