interface ContextAwarePluginManagerInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface
Provides an interface for plugin managers that support context-aware plugins.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of ContextAwarePluginManagerInterface
All classes that implement ContextAwarePluginManagerInterface
1 file declares its use of ContextAwarePluginManagerInterface
- BlockManagerInterface.php in core/
lib/ Drupal/ Core/ Block/ BlockManagerInterface.php
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextAwarePluginManagerInterface.php, line 10
Namespace
Drupal\Core\Plugin\ContextView source
interface ContextAwarePluginManagerInterface extends PluginManagerInterface {
/**
* Determines plugins whose constraints are satisfied by a set of contexts.
*
* @todo Use context definition objects after
* https://www.drupal.org/node/2281635.
*
* @param \Drupal\Component\Plugin\Context\ContextInterface[] $contexts
* An array of contexts.
*
* @return array
* An array of plugin definitions.
*
* @see \Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()
*/
public function getDefinitionsForContexts(array $contexts = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextAwarePluginManagerInterface:: |
public | function | Determines plugins whose constraints are satisfied by a set of contexts. | |
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |