public function ContentTranslationDeleteAccess::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/src/Access/ContentTranslationDeleteAccess.php \Drupal\content_translation\Access\ContentTranslationDeleteAccess::__construct()
- 9 core/modules/content_translation/src/Access/ContentTranslationDeleteAccess.php \Drupal\content_translation\Access\ContentTranslationDeleteAccess::__construct()
Constructs a ContentTranslationDeleteAccess object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity type manager.
\Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager.
File
- core/
modules/ content_translation/ src/ Access/ ContentTranslationDeleteAccess.php, line 49
Class
- ContentTranslationDeleteAccess
- Access check for entity translation deletion.
Namespace
Drupal\content_translation\AccessCode
public function __construct(EntityTypeManagerInterface $manager, ContentTranslationManagerInterface $content_translation_manager) {
$this->entityTypeManager = $manager;
$this->contentTranslationManager = $content_translation_manager;
}