Same name in other branches
  1. 8.x-1.x src/EntityClone/Config/ConfigEntityCloneBase.php \Drupal\entity_clone\EntityClone\Config\ConfigEntityCloneBase::createInstance()
1 method overrides ConfigEntityCloneBase::createInstance()
LayoutBuilderEntityClone::createInstance dans src/EntityClone/Config/LayoutBuilderEntityClone.php

Fichier

src/EntityClone/Config/ConfigEntityCloneBase.php, line 47

Classe

ConfigEntityCloneBase
Class Config Entity CloneBase.

Namespace

Drupal\entity_clone\EntityClone\Config

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static($container->get('entity_type.manager'), $entity_type->id());
}