class ContentTranslationOverviewAccess implements AccessInterface (View source)

Access check for entity translation overview.

Properties

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

Methods

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a ContentTranslationOverviewAccess object.

access(RouteMatchInterface $route_match, AccountInterface $account, string $entity_type_id)

Checks access to the translation overview for the entity and bundle.

Details

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a ContentTranslationOverviewAccess object.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

AccessResultInterface access(RouteMatchInterface $route_match, AccountInterface $account, string $entity_type_id)

Checks access to the translation overview for the entity and bundle.

Parameters

RouteMatchInterface $route_match

The parametrized route.

AccountInterface $account

The currently logged in account.

string $entity_type_id

The entity type ID.

Return Value

AccessResultInterface

The access result.