function NodeRevisionDeleteForm::create
Overrides FormBase::create
File
-
core/
modules/ node/ src/ Form/ NodeRevisionDeleteForm.php, line 78
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.