class ContentTranslationOverviewAccess implements AccessInterface (View source)

Access check for entity translation overview.

Traits

Provides a standard way to announce deprecated properties.

Properties

protected $deprecatedProperties {@inheritdoc}
protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

Methods

__get($name)

Allows to access deprecated/removed properties.

__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

__get($name)

Allows to access deprecated/removed properties.

This method must be public.

Parameters

$name

__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.