You are here

class RouterBuiltEvent in Drupal 7 to 8/9 Module Upgrader 8

Event object fired when all routes have been added to a RouterInterface implementation.

Hierarchy

  • class \Drupal\drupalmoduleupgrader\Routing\RouterBuiltEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of RouterBuiltEvent

2 files declare their use of RouterBuiltEvent
RouteWrapper.php in src/Routing/Drupal7/RouteWrapper.php
RouteWrapper.php in src/Routing/Drupal8/RouteWrapper.php

File

src/Routing/RouterBuiltEvent.php, line 11

Namespace

Drupal\drupalmoduleupgrader\Routing
View source
class RouterBuiltEvent extends Event {

  /**
   * @var \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
   */
  protected $router;

  /**
   * Constructs a RouterBuiltEvent object.
   */
  public function __construct(RouterInterface $router) {
    $this->router = $router;
  }

  /**
   * Returns the router object.
   *
   * @return \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
   */
  public function getRouter() {
    return $this->router;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouterBuiltEvent::$router protected property
RouterBuiltEvent::getRouter public function Returns the router object.
RouterBuiltEvent::__construct public function Constructs a RouterBuiltEvent object.