HomeboxHtmlRouteProvider.php in Homebox 8
Namespace
Drupal\homeboxFile
src/HomeboxHtmlRouteProvider.phpView source
<?php
namespace Drupal\homebox;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
/**
* Provides routes for Homebox entities.
*
* @see \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
* @see \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
*/
class HomeboxHtmlRouteProvider extends AdminHtmlRouteProvider {
/**
* {@inheritdoc}
*/
public function getRoutes(EntityTypeInterface $entity_type) {
$collection = parent::getRoutes($entity_type);
// @todo Unused class?
// Provide your custom entity routes here.
return $collection;
}
}
Classes
Name![]() |
Description |
---|---|
HomeboxHtmlRouteProvider | Provides routes for Homebox entities. |