function ContextMapper::__construct
Same name in other branches
- 8.x-3.x src/ContextMapper.php \Drupal\ctools\ContextMapper::__construct()
Constructs a new ContextMapper.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
File
-
src/
ContextMapper.php, line 29
Class
- ContextMapper
- Maps context configurations to context objects.
Namespace
Drupal\ctoolsCode
public function __construct(EntityRepositoryInterface $entity_repository) {
$this->entityRepository = $entity_repository;
}