You are here

interface ContextAwarePluginManagerInterface in Drupal 8

Same name and namespace in other branches
  1. 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

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\Context
View 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

Namesort descending Modifiers Type Description Overrides
ContextAwarePluginManagerInterface::getDefinitionsForContexts public function Determines plugins whose constraints are satisfied by a set of contexts.
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4