public function ContextMapper::__construct in Page Manager 8.4
Same name and namespace in other branches
- 8 src/ContextMapper.php \Drupal\page_manager\ContextMapper::__construct()
Constructs a new ContextMapper.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
File
- src/
ContextMapper.php, line 28
Class
- ContextMapper
- Maps context configurations to context objects.
Namespace
Drupal\page_managerCode
public function __construct(EntityRepositoryInterface $entity_repository) {
$this->entityRepository = $entity_repository;
}