You are here

interface ContextAwarePluginManagerInterface in Zircon Profile 8

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

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\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.
   */
  public function getDefinitionsForContexts(array $contexts = array());

}

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. 3
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 2
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 5
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4