function 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;
}