29 lines
649 B
PHP
29 lines
649 B
PHP
<?php
|
|
|
|
namespace Drupal\opencase_entities;
|
|
|
|
use Drupal\Core\Entity\EntityTypeInterface;
|
|
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
|
|
use Symfony\Component\Routing\Route;
|
|
|
|
/**
|
|
* Provides routes for Actor type entities.
|
|
*
|
|
* @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
|
|
* @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
|
|
*/
|
|
class OCActorTypeHtmlRouteProvider extends AdminHtmlRouteProvider {
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getRoutes(EntityTypeInterface $entity_type) {
|
|
$collection = parent::getRoutes($entity_type);
|
|
|
|
// Provide your custom entity routes here.
|
|
|
|
return $collection;
|
|
}
|
|
|
|
}
|