diff --git a/core/lib/Drupal/Core/Entity/EntityFormController.php b/core/lib/Drupal/Core/Entity/EntityFormController.php index ceb09de..7243c8c 100644 --- a/core/lib/Drupal/Core/Entity/EntityFormController.php +++ b/core/lib/Drupal/Core/Entity/EntityFormController.php @@ -52,9 +52,24 @@ public function __construct(ModuleHandlerInterface $module_handler) { } /** - * {@inheritdoc} + * Instantiates a new instance of this entity form controller. + * + * This is a factory method that returns a new instance of this object. The + * factory should pass any needed dependencies into the constructor of this + * object, but not the container itself. Every call to this method must return + * a new instance of this object; that is, it may not implement a singleton. + * + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container + * The service container this object should use. + * @param string $entity_type + * The entity type which the controller handles. + * @param array $entity_info + * An array of entity info for the entity type. + * + * @return static + * A new instance of the entity form controller. */ - public static function createInstance(ContainerInterface $container, $entity_type, array $entity_info) { + public static function create(ContainerInterface $container, $entity_type, array $entity_info) { return new static( $container->get('module_handler') );