You are here

public function ContentTranslationPermissions::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/ContentTranslationPermissions.php \Drupal\content_translation\ContentTranslationPermissions::__construct()

Constructs a ContentTranslationPermissions instance.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager.

File

core/modules/content_translation/src/ContentTranslationPermissions.php, line 44
Contains \Drupal\content_translation\ContentTranslationPermissions.

Class

ContentTranslationPermissions
Provides dynamic permissions for the content_translation module.

Namespace

Drupal\content_translation

Code

public function __construct(EntityManagerInterface $entity_manager, ContentTranslationManagerInterface $content_translation_manager) {
  $this->entityManager = $entity_manager;
  $this->contentTranslationManager = $content_translation_manager;
}