Constructor.
Drupal\Core\ContentNegotiation $negotiation: The content negotiation library to use to determine the correct response format.
public function __construct(ContentNegotiation $negotiation) { $this->negotiation = $negotiation; }