function NodeForm::create

Same name in other branches
  1. 8.9.x core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::create()
  2. 10 core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::create()
  3. 11.x core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::create()

Overrides ContentEntityForm::create

File

core/modules/node/src/NodeForm.php, line 69

Class

NodeForm
Form handler for the node edit forms.

Namespace

Drupal\node

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity.repository'), $container->get('tempstore.private'), $container->get('entity_type.bundle.info'), $container->get('datetime.time'), $container->get('current_user'), $container->get('date.formatter'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.