function NodeForm::create

Same name in other branches
  1. 9 core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::create()
  2. 8.9.x 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 76

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.