Gets a list of content types acceptable by the client browser
@api
array List of content types in preferable order
public function getAcceptableContentTypes() {
if (null !== $this->acceptableContentTypes) {
return $this->acceptableContentTypes;
}
return $this->acceptableContentTypes = array_keys($this
->splitHttpAcceptHeader($this->headers
->get('Accept')));
}