You are here

ProjectTypeHtmlRouteProvider.php in Drupal PM (Project Management) 4.x

Namespace

Drupal\pm_project

File

modules/pm_project/src/ProjectTypeHtmlRouteProvider.php
View source
<?php

namespace Drupal\pm_project;

use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;

/**
 * Provides routes for Project type entities.
 *
 * @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
 * @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
 */
class ProjectTypeHtmlRouteProvider 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
ProjectTypeHtmlRouteProvider Provides routes for Project type entities.