Same name in other branches
- 2.x src/EntityClone/Config/ConfigEntityCloneBase.php \Drupal\entity_clone\EntityClone\Config\ConfigEntityCloneBase::createInstance()
1 method overrides ConfigEntityCloneBase::createInstance()
- LayoutBuilderEntityClone::createInstance in src/
EntityClone/ Config/ LayoutBuilderEntityClone.php
File
-
src/
EntityClone/ Config/ ConfigEntityCloneBase.php, line 47
Class
- ConfigEntityCloneBase
- Class Config Entity CloneBase.
Namespace
Drupal\entity_clone\EntityClone\ConfigCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($container->get('entity_type.manager'), $entity_type->id());
}