function DblogClearLogConfirmForm::create

Same name in other branches
  1. 9 core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::create()
  2. 8.9.x core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::create()
  3. 10 core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::create()

Overrides FormBase::create

File

core/modules/dblog/src/Form/DblogClearLogConfirmForm.php, line 38

Class

DblogClearLogConfirmForm
Provides a confirmation form before clearing out the logs.

Namespace

Drupal\dblog\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('database'));
}

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