Same name and namespace in other branches
  1. 8.x-1.x src/EntityClonePermissions.php \Drupal\entity_clone\EntityClonePermissions::__construct() 1 comment

Constructs a new EntityClonePermissions instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationManager $string_translation: The string translation manager.

\\Drupal\entity_clone\Services\EntityCloneServiceProvider $service_provider: The Service Provider that verifies if entity has ownership.

File

src/EntityClonePermissions.php, line 47

Class

EntityClonePermissions
Provides dynamic permissions of the entity_clone module.

Namespace

Drupal\entity_clone

Code

public function __construct(EntityTypeManagerInterface $entity_manager, TranslationManager $string_translation, EntityCloneServiceProvider $service_provider) {
    $this->entityTypeManager = $entity_manager;
    $this->translationManager = $string_translation;
    $this->serviceProvider = $service_provider;
}