public function EntityLazyLoadContext::__construct in Page Manager 8
Same name and namespace in other branches
- 8.4 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 43 - Contains \Drupal\page_manager\Context\EntityLazyLoadContext.
Class
- EntityLazyLoadContext
- @todo.
Namespace
Drupal\page_manager\ContextCode
public function __construct(ContextDefinitionInterface $context_definition, EntityRepositoryInterface $entity_repository, $uuid) {
parent::__construct($context_definition);
$this->entityRepository = $entity_repository;
$this->uuid = $uuid;
}