Constructs a new \Drupal\Core\Routing\Enhancer\AjaxEnhancer object.
Parameters
\Drupal\Core\ContentNegotiation $negotiation:
The Content Negotiation service.
File
- drupal/core/lib/Drupal/Core/Routing/Enhancer/AjaxEnhancer.php, line 32
- Contains \Drupal\Core\Routing\Enhancer\AjaxEnhancer.
Class
- AjaxEnhancer
- Enhances an ajax route with the appropriate controller.
Namespace
Drupal\Core\Routing\Enhancer
Code
public function __construct(ContentNegotiation $negotiation) {
$this->negotiation = $negotiation;
}