27 lines
593 B
PHP
27 lines
593 B
PHP
|
<?php
|
||
|
|
||
|
namespace Drupal\opencase;
|
||
|
|
||
|
use Drupal\Core\Entity\EntityTypeInterface;
|
||
|
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
|
||
|
|
||
|
/**
|
||
|
* Provides routes for Event entities.
|
||
|
*
|
||
|
* @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
|
||
|
* @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
|
||
|
*/
|
||
|
class OCEventHtmlRouteProvider extends AdminHtmlRouteProvider {
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getRoutes(EntityTypeInterface $entity_type) {
|
||
|
$collection = parent::getRoutes($entity_type);
|
||
|
|
||
|
// Provide your custom entity routes here.
|
||
|
return $collection;
|
||
|
}
|
||
|
|
||
|
}
|