public function JsonldEncoder::supportsEncoding

Check whether the request is for JSON-LD.

Parameters

string $format: The short name of the format returned by ContentNegotiation.

Return value

bool Returns TRUE if the encoder can handle the request.

Overrides JsonEncoder::supportsEncoding

File

drupal/core/modules/jsonld/lib/Drupal/jsonld/JsonldEncoder.php, line 36
Definition of Drupal\jsonld\JsonldEncoder.

Class

JsonldEncoder
Encodes JSON-LD data.

Namespace

Drupal\jsonld

Code

public function supportsEncoding($format) {
  return in_array($format, static::$format);
}