Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PreloadableRouteProviderInterface.php

interface PreloadableRouteProviderInterface

Extends the router provider interface to pre-load routes.

Hierarchy

  • interface \Drupal\Core\Routing\RouteProviderInterface
    • interface \Drupal\Core\Routing\PreloadableRouteProviderInterface extends \Drupal\Core\Routing\RouteProviderInterface

Expanded class hierarchy of PreloadableRouteProviderInterface

All classes that implement PreloadableRouteProviderInterface

1 file declares its use of PreloadableRouteProviderInterface
MenuLinkTree.php in core/lib/Drupal/Core/Menu/MenuLinkTree.php

File

core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php, line 8

Namespace

Drupal\Core\Routing
View source
interface PreloadableRouteProviderInterface extends RouteProviderInterface {
    
    /**
     * Pre-load routes by their names using the provided list of names.
     *
     * This method exists in order to allow performance optimizations. It allows
     * pre-loading serialized routes that may latter be retrieved using
     * ::getRoutesByName()
     *
     * @param string[] $names
     *   Array of route names to load.
     */
    public function preLoadRoutes($names);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PreloadableRouteProviderInterface::preLoadRoutes public function Pre-load routes by their names using the provided list of names. 2
RouteProviderInterface::getAllRoutes public function Returns all the routes on the system. 2
RouteProviderInterface::getRouteByName public function Find the route using the provided route name. 2
RouteProviderInterface::getRouteCollectionForRequest public function Finds routes that may potentially match the request. 2
RouteProviderInterface::getRoutesByNames public function Find many routes by their names using the provided list of names. 2
RouteProviderInterface::getRoutesByPattern public function Get all routes which match a certain pattern. 2
RouteProviderInterface::reset public function Resets the route provider object. 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal