function ContextManager::__construct in Context 8.0
Same name and namespace in other branches
- 8.4 src/ContextManager.php \Drupal\context\ContextManager::__construct()
- 8 src/ContextManager.php \Drupal\context\ContextManager::__construct()
Construct.
Parameters
QueryFactory $entityQuery: The Drupal entity query service.
EntityManagerInterface $entityManager: The Drupal entity manager service.
ContextRepositoryInterface $contextRepository: The drupal context repository service.
ContextHandlerInterface $contextHandler: The Drupal context handler service.
\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder:
File
- src/
ContextManager.php, line 82
Class
- ContextManager
- This is the manager service for the context module and should not be confused with the built in contexts in Drupal.
Namespace
Drupal\contextCode
function __construct(QueryFactory $entityQuery, EntityManagerInterface $entityManager, ContextRepositoryInterface $contextRepository, ContextHandlerInterface $contextHandler, EntityFormBuilderInterface $entityFormBuilder) {
$this->entityQuery = $entityQuery;
$this->entityManager = $entityManager;
$this->contextRepository = $contextRepository;
$this->contextHandler = $contextHandler;
$this->entityFormBuilder = $entityFormBuilder;
}