iframe_consent-1.0.x-dev/src/Routing/IframeConsentDomainHtmlRouteProvider.php
src/Routing/IframeConsentDomainHtmlRouteProvider.php
<?php
declare(strict_types=1);
namespace Drupal\iframe_consent\Routing;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
use Symfony\Component\Routing\Route;
/**
* Provides HTML routes for entities with administrative pages.
*/
final class IframeConsentDomainHtmlRouteProvider extends AdminHtmlRouteProvider {
/**
* {@inheritdoc}
*/
protected function getCanonicalRoute(EntityTypeInterface $entity_type): ?Route {
return $this->getEditFormRoute($entity_type);
}
}
