l10n_server-2.x-dev/l10n_server/src/Routing/L10nServerStatusFlagHtmlRouteProvider.php
l10n_server/src/Routing/L10nServerStatusFlagHtmlRouteProvider.php
<?php declare(strict_types=1); namespace Drupal\l10n_server\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. */ class L10nServerStatusFlagHtmlRouteProvider extends AdminHtmlRouteProvider { /** * {@inheritdoc} */ protected function getCanonicalRoute(EntityTypeInterface $entity_type): Route { return $this->getEditFormRoute($entity_type); } }