function RevisionDeleteForm::create

Same name in other branches
  1. 10 core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php \Drupal\Core\Entity\Form\RevisionDeleteForm::create()

Overrides FormBase::create

File

core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php, line 79

Class

RevisionDeleteForm
Provides a form for deleting an entity revision.

Namespace

Drupal\Core\Entity\Form

Code

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

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