Same name in other branches
- 8.x-1.x src/EntityClone/Content/ContentEntityCloneBase.php \Drupal\entity_clone\EntityClone\Content\ContentEntityCloneBase::createInstance()
Fichier
-
src/
EntityClone/ Content/ ContentEntityCloneBase.php, line 81
Classe
- ContentEntityCloneBase
- Class Content Entity Clone Base.
Namespace
Drupal\entity_clone\EntityClone\ContentCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($container->get('entity_type.manager'), $entity_type->id(), $container->get('datetime.time'), $container->get('current_user'));
}