function NodeRevisionDeleteForm::create
Same name in other branches
- 9 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::create()
- 10 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::create()
- 11.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::create()
Overrides FormBase::create
File
-
core/
modules/ node/ src/ Form/ NodeRevisionDeleteForm.php, line 77
Class
- NodeRevisionDeleteForm
- Provides a form for deleting a node revision.
Namespace
Drupal\node\FormCode
public static function create(ContainerInterface $container) {
$entity_type_manager = $container->get('entity_type.manager');
return new static($entity_type_manager->getStorage('node'), $entity_type_manager->getStorage('node_type'), $container->get('database'), $container->get('date.formatter'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.