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

Constructs a new EntityClonePermissions instance.

Paramètres

\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.

Fichier

src/EntityClonePermissions.php, line 47

Classe

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;
}