Drupal 8  8.0.2
CategorizingPluginManager Class Reference
Inheritance diagram for CategorizingPluginManager:

Public Member Functions

 __construct (ModuleHandlerInterface $module_handler)
 
 getDefinitions ()
 
 processDefinition (&$definition, $plugin_id)
 
- 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)
 
- Public Member Functions inherited from CategorizingPluginManagerInterface
 getCategories ()
 
 getSortedDefinitions (array $definitions=NULL)
 
 getGroupedDefinitions (array $definitions=NULL)
 

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

Class that allows testing the trait.

Constructor & Destructor Documentation

__construct ( ModuleHandlerInterface  $module_handler)

Replace the constructor so we can instantiate a stub.

Parameters
\Drupal\Core\Extension\ModuleHandlerInterface | \PHPUnit_Framework_MockObject_MockObject$module_handlerThe module handler.

References Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

getDefinitions ( )

{Gets the definition of all plugins for this type.

Returns
mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.
}

Provides some test definitions to the trait.

Implements DiscoveryInterface.

processDefinition ( $definition,
  $plugin_id 
)

{}


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