You are here

public function Serializer::supportsEncoding in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::supportsEncoding()

Checks whether the serializer can encode to given format.

Parameters

string $format format name:

Return value

bool

Overrides EncoderInterface::supportsEncoding

1 call to Serializer::supportsEncoding()
Serializer::serialize in vendor/symfony/serializer/Serializer.php
Serializes data in the appropriate format.

File

vendor/symfony/serializer/Serializer.php, line 298

Class

Serializer
Serializer serializes and deserializes data.

Namespace

Symfony\Component\Serializer

Code

public function supportsEncoding($format) {
  return $this->encoder
    ->supportsEncoding($format);
}