EnhancerInterface.php
Same filename in other branches
Namespace
Drupal\Core\RoutingFile
-
core/
lib/ Drupal/ Core/ Routing/ EnhancerInterface.php
View 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
Title | Deprecated | Summary |
---|---|---|
EnhancerInterface | A route enhance service to determine route enhance rules. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.