public function EntityClonePermissions::__construct in Entity Clone 8
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;
}