public function GlobalContextRepositoryTrait::setGlobalContextRepository in Rules 8.3
Sets the global context repository.
Parameters
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The global context repository.
Return value
$this
File
- src/
Context/ GlobalContextRepositoryTrait.php, line 27
Class
- GlobalContextRepositoryTrait
- Trait for classes that depend on the global context repository.
Namespace
Drupal\rules\ContextCode
public function setGlobalContextRepository(ContextRepositoryInterface $context_repository) {
$this->contextRepository = $context_repository;
return $this;
}