public function SerializationTestEncoder::supportsEncoding

Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::supportsEncoding().

Overrides EncoderInterface::supportsEncoding

File

drupal/core/modules/serialization/tests/serialization_test/lib/Drupal/serialization_test/SerializationTestEncoder.php, line 32
Contains \Drupal\serialization_test\SerializationTestEncoder.

Class

SerializationTestEncoder

Namespace

Drupal\serialization_test

Code

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