You are here

public function RouterBase::finalize in Drupal 7 to 8/9 Module Upgrader 8

Completes the 'build' of this router, dispatching the 'router.built' event to all added routes.

Overrides RouterInterface::finalize

File

src/Routing/RouterBase.php, line 37

Class

RouterBase
Base class for RouterInterface implementations.

Namespace

Drupal\drupalmoduleupgrader\Routing

Code

public function finalize() {
  $this->dispatcher
    ->dispatch('router.built', new RouterBuiltEvent($this));
}