Drupal 8  8.0.2
InfoHookDecorator Class Reference
Inheritance diagram for InfoHookDecorator:

Public Member Functions

 __construct (DiscoveryInterface $decorated, $hook)
 
 getDefinitions ()
 
 __call ($method, $args)
 
- Public Member Functions inherited from DiscoveryInterface
 getDefinition ($plugin_id, $exception_on_invalid=TRUE)
 
 hasDefinition ($plugin_id)
 

Protected Attributes

 $decorated
 
 $hook
 

Detailed Description

Allows info hook implementations to enhance discovered plugin definitions.

Constructor & Destructor Documentation

__construct ( DiscoveryInterface  $decorated,
  $hook 
)

Constructs a InfoHookDecorator object.

Parameters
\Drupal\Component\Plugin\Discovery\DiscoveryInterface$decoratedThe object implementing DiscoveryInterface that is being decorated.
string$hookThe name of the info hook to be invoked by this discovery instance.

Member Function Documentation

__call (   $method,
  $args 
)

Passes through all unknown calls onto the decorated object.

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.
}

Implements DiscoveryInterface.

References Drupal\moduleHandler().

Here is the call graph for this function:


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