public function CanonicalEntity::__construct in Core Context 8
CanonicalEntity constructor.
Parameters
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.
mixed ...$arguments: Additional arguments to pass to the parent constructor.
Overrides RouteAwareContextProviderBase::__construct
File
- src/
ContextProvider/ CanonicalEntity.php, line 29
Class
- CanonicalEntity
- Exposes contexts available at a canonical entity route.
Namespace
Drupal\core_context\ContextProviderCode
public function __construct(EntityDisplayRepositoryInterface $entity_display_repository, ...$arguments) {
$this->entityDisplayRepository = $entity_display_repository;
parent::__construct(...$arguments);
}