function ContextHandlerInterface::filterPluginDefinitionsByContexts
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php \Drupal\Core\Plugin\Context\ContextHandlerInterface::filterPluginDefinitionsByContexts()
- 8.9.x core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php \Drupal\Core\Plugin\Context\ContextHandlerInterface::filterPluginDefinitionsByContexts()
- 11.x core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php \Drupal\Core\Plugin\Context\ContextHandlerInterface::filterPluginDefinitionsByContexts()
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.
array $definitions: An array of plugin definitions.
Return value
array An array of plugin definitions.
File
-
core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextHandlerInterface.php, line 26
Class
- ContextHandlerInterface
- Provides an interface for handling sets of contexts.
Namespace
Drupal\Core\Plugin\ContextCode
public function filterPluginDefinitionsByContexts(array $contexts, array $definitions);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.