Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Serializer.php

function Serializer::supportsEncoding

Overrides ContextAwareEncoderInterface::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 389

Class

Serializer
Serializer serializes and deserializes data.

Namespace

Symfony\Component\Serializer

Code

public function supportsEncoding(string $format, array $context = []) : bool {
    return $this->encoder
        ->supportsEncoding($format, $context);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal