PreloadableRouteProviderInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php
  2. 8.9.x core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php
  3. 11.x core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php

Namespace

Drupal\Core\Routing

File

core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php

View source
<?php

namespace Drupal\Core\Routing;


/**
 * Extends the router provider interface to pre-load routes.
 */
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);

}

Interfaces

Title Deprecated Summary
PreloadableRouteProviderInterface Extends the router provider interface to pre-load routes.

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