CacheableRouteProviderInterface.php 534 B

1234567891011121314151617181920
  1. <?php
  2. namespace Drupal\Core\Routing;
  3. /**
  4. * Extends the router provider interface to provide caching support.
  5. */
  6. interface CacheableRouteProviderInterface extends RouteProviderInterface {
  7. /**
  8. * Adds a cache key part to be used in the cache ID of the route collection.
  9. *
  10. * @param string $cache_key_provider
  11. * The provider of the cache key part.
  12. * @param string $cache_key_part
  13. * A string to be used as a cache key part.
  14. */
  15. public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part);
  16. }