function RouterRebuildConfirmForm::create

Same name in other branches
  1. 4.x src/Form/RouterRebuildConfirmForm.php \Drupal\devel\Form\RouterRebuildConfirmForm::create()

Overrides FormBase::create

File

src/Form/RouterRebuildConfirmForm.php, line 24

Class

RouterRebuildConfirmForm
Provides confirmation form for rebuilding the routes.

Namespace

Drupal\devel\Form

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->routeBuilder = $container->get('router.builder');
    $instance->messenger = $container->get('messenger');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}