This repository has been archived on 2022-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
2018-04-29 11:58:46 +00:00
|
|
|
<?php
|
|
|
|
|
2021-02-18 12:02:25 +00:00
|
|
|
namespace Drupal\opencase_cases;
|
2018-04-29 11:58:46 +00:00
|
|
|
|
|
|
|
use Drupal\Core\Entity\EntityTypeInterface;
|
|
|
|
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
|
|
|
|
use Symfony\Component\Routing\Route;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides routes for Case type entities.
|
|
|
|
*
|
|
|
|
* @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
|
|
|
|
* @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
|
|
|
|
*/
|
|
|
|
class OCCaseTypeHtmlRouteProvider extends AdminHtmlRouteProvider {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getRoutes(EntityTypeInterface $entity_type) {
|
|
|
|
$collection = parent::getRoutes($entity_type);
|
|
|
|
|
|
|
|
// Provide your custom entity routes here.
|
|
|
|
|
|
|
|
return $collection;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|