EnhancerInterface.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\Core\RoutingFile
core/lib/Drupal/Core/Routing/EnhancerInterface.phpView source
<?php
namespace Drupal\Core\Routing;
use Symfony\Component\HttpFoundation\Request;
/**
* A route enhance service to determine route enhance rules.
*/
interface EnhancerInterface {
/**
* Updates the defaults for a route definition based on the request.
*
* @param array $defaults
* The defaults, maps to '_defaults' in the route definition YAML.
* @param \Symfony\Component\HttpFoundation\Request $request
* The Request instance.
*
* @return array
* The modified defaults. Each enhancer MUST return the
* $defaults but may add or remove values.
*/
public function enhance(array $defaults, Request $request);
}
Interfaces
Name | Description |
---|---|
EnhancerInterface | A route enhance service to determine route enhance rules. |