function ContextRepositoryInterface::getRuntimeContexts
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/ContextRepositoryInterface.php \Drupal\Core\Plugin\Context\ContextRepositoryInterface::getRuntimeContexts()
- 10 core/lib/Drupal/Core/Plugin/Context/ContextRepositoryInterface.php \Drupal\Core\Plugin\Context\ContextRepositoryInterface::getRuntimeContexts()
- 11.x core/lib/Drupal/Core/Plugin/Context/ContextRepositoryInterface.php \Drupal\Core\Plugin\Context\ContextRepositoryInterface::getRuntimeContexts()
Gets runtime context values for the given context IDs.
Given that context providers might not return contexts for the given context IDs, it is also not guaranteed that the context repository returns contexts for all specified IDs.
Parameters
string[] $context_ids: Fully qualified context IDs, which looks like service_id}:{unqualified_context_id}, so for example node.node_route_context:node.
Return value
\Drupal\Core\Plugin\Context\ContextInterface[] The determined contexts, keyed by the fully qualified context ID.
1 method overrides ContextRepositoryInterface::getRuntimeContexts()
- LazyContextRepository::getRuntimeContexts in core/
lib/ Drupal/ Core/ Plugin/ Context/ LazyContextRepository.php - Gets runtime context values for the given context IDs.
File
-
core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextRepositoryInterface.php, line 31
Class
- ContextRepositoryInterface
- Offers a global context repository.
Namespace
Drupal\Core\Plugin\ContextCode
public function getRuntimeContexts(array $context_ids);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.