You are here

public function ContextAwarePluginManagerInterface::getDefinitionsForContexts 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::getDefinitionsForContexts()

Determines plugins whose constraints are satisfied by a set of contexts.

@todo Use context definition objects after https://www.drupal.org/node/2281635.

Parameters

\Drupal\Component\Plugin\Context\ContextInterface[] $contexts: An array of contexts.

Return value

array An array of plugin definitions.

See also

\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()

File

core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php, line 26

Class

ContextAwarePluginManagerInterface
Provides an interface for plugin managers that support context-aware plugins.

Namespace

Drupal\Core\Plugin\Context

Code

public function getDefinitionsForContexts(array $contexts = []);