workspaces_route_lock-8.x-1.0-alpha5/src/WorkspacesRouteLockHtmlRouteProvider.php
src/WorkspacesRouteLockHtmlRouteProvider.php
<?php
namespace Drupal\workspaces_route_lock;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
/**
* Provides routes for Workspaces route lock entities.
*
* @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
* @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
*/
class WorkspacesRouteLockHtmlRouteProvider extends AdminHtmlRouteProvider {
/**
* {@inheritdoc}
*/
public function getRoutes(EntityTypeInterface $entity_type) {
$collection = parent::getRoutes($entity_type);
// Provide your custom entity routes here.
return $collection;
}
}
