function ContextMapper::__construct

Same name in other branches
  1. 4.0.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\ctools

Code

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