Same name in other branches
  1. 2.x src/EntityClonePermissions.php \Drupal\entity_clone\EntityClonePermissions::create()

File

src/EntityClonePermissions.php, line 56

Class

EntityClonePermissions
Provides dynamic permissions of the entity_clone module.

Namespace

Drupal\entity_clone

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager'), $container->get('string_translation'), $container->get('entity_clone.service_provider'));
}