function ContextManager::__construct in Context 8
Same name and namespace in other branches
- 8.4 src/ContextManager.php \Drupal\context\ContextManager::__construct()
- 8.0 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.
ThemeManagerInterface $themeManager: The Drupal theme manager service.
\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder:
File
- src/
ContextManager.php, line 92
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, ThemeManagerInterface $themeManager) {
$this->entityQuery = $entityQuery;
$this->entityManager = $entityManager;
$this->contextRepository = $contextRepository;
$this->contextHandler = $contextHandler;
$this->entityFormBuilder = $entityFormBuilder;
$this->themeManager = $themeManager;
}