You are here

class RouteSubscriber in Google Analytics Reports 8.3

Subscriber for google analytics reports routes.

Hierarchy

  • class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of RouteSubscriber

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

File

src/Routing/RouteSubscriber.php, line 11

Namespace

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

  /**
   * {@inheritdoc}
   */
  protected function alterRoutes(RouteCollection $collection) {
    if ($route = $collection
      ->get('google_analytics_reports_api.settings')) {
      $route
        ->setDefault('_form', 'Drupal\\google_analytics_reports\\Form\\GoogleAnalyticsReportsAdminSettingsForm');
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouteSubscriber::alterRoutes protected 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