Skip to content
Snippets Groups Projects
Commit 0ac37362 authored by Owen Bush's avatar Owen Bush
Browse files

Adding FieldInheritanceHtmlRouteProvider back

parent 0c9f14da
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,9 @@ use Drupal\Core\Config\Entity\ConfigEntityBase; ...@@ -18,6 +18,9 @@ use Drupal\Core\Config\Entity\ConfigEntityBase;
* "edit" = "Drupal\recurring_events\Form\FieldInheritanceForm", * "edit" = "Drupal\recurring_events\Form\FieldInheritanceForm",
* "delete" = "Drupal\recurring_events\Form\FieldInheritanceDeleteForm" * "delete" = "Drupal\recurring_events\Form\FieldInheritanceDeleteForm"
* }, * },
* "route_provider" = {
* "html" = "Drupal\recurring_events\FieldInheritanceHtmlRouteProvider",
* },
* }, * },
* config_prefix = "field_inheritance", * config_prefix = "field_inheritance",
* admin_permission = "administer site configuration", * admin_permission = "administer site configuration",
......
<?php
namespace Drupal\recurring_events;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
use Symfony\Component\Routing\Route;
/**
* Provides routes for Field inheritance entities.
*
* @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
* @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
*/
class FieldInheritanceHtmlRouteProvider extends AdminHtmlRouteProvider {
/**
* {@inheritdoc}
*/
public function getRoutes(EntityTypeInterface $entity_type) {
$collection = parent::getRoutes($entity_type);
// Provide your custom entity routes here.
return $collection;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment