You are here

class RouteSubscriber in Password Reset Landing Page (PRLP) 8

Subscriber for prplp routes.

Hierarchy

Expanded class hierarchy of RouteSubscriber

1 string reference to 'RouteSubscriber'
prlp.services.yml in ./prlp.services.yml
prlp.services.yml
1 service uses RouteSubscriber
prlp.route_subscriber in ./prlp.services.yml
Drupal\prlp\Routing\RouteSubscriber

File

src/Routing/RouteSubscriber.php, line 11

Namespace

Drupal\prlp\Routing
View source
class RouteSubscriber extends RouteSubscriberBase {

  /**
   * {@inheritdoc}
   */
  public function alterRoutes(RouteCollection $collection) {

    // Override controller for password reset submit action.
    if ($route = $collection
      ->get('user.reset.login')) {
      $route
        ->setDefault('_controller', '\\Drupal\\prlp\\Controller\\PrlpController::prlpResetPassLogin');
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouteSubscriber::alterRoutes public function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 5
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1