You are here

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

File

core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php, line 29
Contains \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface.

Class

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

Namespace

Drupal\Core\Plugin\Context

Code

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