You are here

public function ContextMapper::__construct in Page Manager 8

Same name and namespace in other branches
  1. 8.4 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 33
Contains \Drupal\page_manager\ContextMapper.

Class

ContextMapper
Maps context configurations to context objects.

Namespace

Drupal\page_manager

Code

public function __construct(EntityRepositoryInterface $entity_repository) {
  $this->entityRepository = $entity_repository;
}