interface ContextAwarePluginManagerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 - Contains \Drupal\Core\Block\BlockManagerInterface.
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextAwarePluginManagerInterface.php, line 15 - Contains \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface.
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.
*/
public function getDefinitionsForContexts(array $contexts = array());
}
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. | 3 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 2 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 5 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |