ContentTranslationManageAccessCheck
class ContentTranslationManageAccessCheck implements AccessInterface (View source)
Access check for entity translation CRUD operation.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected LanguageManagerInterface | $languageManager | The language manager. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager)
Constructs a ContentTranslationManageAccessCheck object.
access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, string $source = NULL, string $target = NULL, string $language = NULL, string $entity_type_id = NULL)
Checks translation access for the entity and operation on the given route.
checkAccess(ContentEntityInterface $entity, LanguageInterface $language, string $operation)
Performs access checks for the specified operation.
Details
__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager)
Constructs a ContentTranslationManageAccessCheck object.
AccessResultInterface
access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, string $source = NULL, string $target = NULL, string $language = NULL, string $entity_type_id = NULL)
Checks translation access for the entity and operation on the given route.
protected AccessResultInterface
checkAccess(ContentEntityInterface $entity, LanguageInterface $language, string $operation)
Performs access checks for the specified operation.