You are here

public function EntityLazyLoadContext::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Context/EntityLazyLoadContext.php \Drupal\page_manager\Context\EntityLazyLoadContext::__construct()

Construct an EntityLazyLoadContext object.

Parameters

\Drupal\Core\Plugin\Context\ContextDefinitionInterface $context_definition: The context definition.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

string $uuid: The UUID of the entity.

Overrides Context::__construct

File

src/Context/EntityLazyLoadContext.php, line 38

Class

EntityLazyLoadContext
@todo.

Namespace

Drupal\page_manager\Context

Code

public function __construct(ContextDefinitionInterface $context_definition, EntityRepositoryInterface $entity_repository, $uuid) {
  parent::__construct($context_definition);
  $this->entityRepository = $entity_repository;
  $this->uuid = $uuid;
}