Same name in other branches
- 2.x src/EntityClonePermissions.php \Drupal\entity_clone\EntityClonePermissions::__construct()
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_cloneCode
public function __construct(EntityTypeManagerInterface $entity_manager, TranslationManager $string_translation, EntityCloneServiceProvider $service_provider) {
$this->entityTypeManager = $entity_manager;
$this->translationManager = $string_translation;
$this->serviceProvider = $service_provider;
}