You are here

public function ContextRepositoryInterface::getRuntimeContexts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\Core\Plugin\Context\ContextRepositoryInterface.

Class

ContextRepositoryInterface
Offers a global context repository.

Namespace

Drupal\Core\Plugin\Context

Code

public function getRuntimeContexts(array $context_ids);