You are here

GoogleAnalyticsEventTrackerHtmlRouteProvider.php in Google Analytics Event Tracking 8

Same filename and directory in other branches
  1. 8.2 src/GoogleAnalyticsEventTrackerHtmlRouteProvider.php

File

src/GoogleAnalyticsEventTrackerHtmlRouteProvider.php
View source
<?php

namespace Drupal\google_analytics_et;

use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
use Symfony\Component\Routing\Route;

/**
 * Provides routes for Google Analytics event tracker entities.
 *
 * @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
 * @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
 */
class GoogleAnalyticsEventTrackerHtmlRouteProvider extends AdminHtmlRouteProvider {

  /**
   * {@inheritdoc}
   */
  public function getRoutes(EntityTypeInterface $entity_type) {
    $collection = parent::getRoutes($entity_type);

    // Provide your custom entity routes here.
    return $collection;
  }

}

Classes

Namesort descending Description
GoogleAnalyticsEventTrackerHtmlRouteProvider Provides routes for Google Analytics event tracker entities.