DefaultHtmlRouteProvider

Provides HTML routes for entities.

This class provides the following routes for entities, with title and access callbacks:

  • canonical
  • add-page
  • add-form
  • edit-form
  • delete-form
  • collection

@internal

Hierarchy

See also

\Drupal\Core\Entity\Routing\AdminHtmlRouteProvider.

File

core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php, line 32

Namespace

Drupal\Core\Entity\Routing

Members

Name Modifiers Type Description
DefaultHtmlRouteProvider::$entityFieldManager protected property The entity field manager.
DefaultHtmlRouteProvider::$entityTypeManager protected property The entity type manager.
DefaultHtmlRouteProvider::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance
DefaultHtmlRouteProvider::getAddFormRoute protected function Gets the add-form route.
DefaultHtmlRouteProvider::getAddPageRoute protected function Gets the add page route.
DefaultHtmlRouteProvider::getCanonicalRoute protected function Gets the canonical route.
DefaultHtmlRouteProvider::getCollectionRoute protected function Gets the collection route.
DefaultHtmlRouteProvider::getDeleteFormRoute protected function Gets the delete-form route.
DefaultHtmlRouteProvider::getEditFormRoute protected function Gets the edit-form route.
DefaultHtmlRouteProvider::getEntityTypeIdKeyType protected function Gets the type of the ID key for a given entity type.
DefaultHtmlRouteProvider::getRoutes public function Provides routes for entities. Overrides EntityRouteProviderInterface::getRoutes
DefaultHtmlRouteProvider::__construct public function Constructs a new DefaultHtmlRouteProvider.
doc_Drupal
2016-10-29 09:01:42
Comments
Leave a Comment

Please login to continue.