ContentTranslationDeleteAccess
class ContentTranslationDeleteAccess implements AccessInterface (View source)
| internal | This additional access checker only aims to prevent deletions in pending revisions until we are able to flag revision translations as deleted. |
Access check for entity translation deletion.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected ContentTranslationManagerInterface | $contentTranslationManager | The content translation manager. |
Methods
__construct(EntityTypeManagerInterface $manager, ContentTranslationManagerInterface $content_translation_manager)
Constructs a ContentTranslationDeleteAccess object.
access(RouteMatchInterface $route_match, AccountInterface $account)
Checks access to translation deletion for the specified route match.
checkAccess(ContentEntityInterface $entity)
Checks access to translation deletion for the specified entity.
Details
__construct(EntityTypeManagerInterface $manager, ContentTranslationManagerInterface $content_translation_manager)
Constructs a ContentTranslationDeleteAccess object.
AccessResultInterface
access(RouteMatchInterface $route_match, AccountInterface $account)
Checks access to translation deletion for the specified route match.
AccessResultInterface
checkAccess(ContentEntityInterface $entity)
Checks access to translation deletion for the specified entity.