public function SerializationTestEncoder::supportsEncoding

Checks whether this encoder can encode to the requested format.

Parameters

string $format: The short name of the format.

Return value

bool Returns TRUE if this encoder can encode to the requested format.

Overrides EncoderInterface::supportsEncoding

File

drupal/core/modules/system/tests/modules/serialization_test/lib/Drupal/serialization_test/SerializationTestEncoder.php, line 46
Definition of Drupal\serialization_test\SerializationTestEncoder.

Class

SerializationTestEncoder

Namespace

Drupal\serialization_test

Code

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