Constructs a new ContentControllerEnhancer object.
Parameters
\Drupal\Core\ContentNegotiation $negotiation:
The Content Negotiation service.
File
- drupal/core/lib/Drupal/Core/Routing/Enhancer/ContentControllerEnhancer.php, line 43
- Contains \Drupal\Core\Routing\Enhancer\ContentControllerEnhancer.
Class
- ContentControllerEnhancer
- Enhances a route to select a controller based on the mime type of the request.
Namespace
Drupal\Core\Routing\Enhancer
Code
public function __construct(ContentNegotiation $negotiation) {
$this->negotiation = $negotiation;
}