function BlockContentRouteProvider::getCanonicalRoute

Gets the canonical route.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Symfony\Component\Routing\Route|null The generated route, if available.

Overrides DefaultHtmlRouteProvider::getCanonicalRoute

File

core/modules/block_content/src/Routing/BlockContentRouteProvider.php, line 31

Class

BlockContentRouteProvider
Provides HTML routes for block_content entities.

Namespace

Drupal\block_content\Routing

Code

protected function getCanonicalRoute(EntityTypeInterface $entity_type) {
  return self::getEditFormRoute($entity_type);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.