function SerializationTestEncoder::supportsEncoding

Same name in other branches
  1. 8.9.x core/modules/serialization/tests/serialization_test/src/SerializationTestEncoder.php \Drupal\serialization_test\SerializationTestEncoder::supportsEncoding()
  2. 10 core/modules/serialization/tests/serialization_test/src/SerializationTestEncoder.php \Drupal\serialization_test\SerializationTestEncoder::supportsEncoding()
  3. 11.x core/modules/serialization/tests/serialization_test/src/SerializationTestEncoder.php \Drupal\serialization_test\SerializationTestEncoder::supportsEncoding()

File

core/modules/serialization/tests/serialization_test/src/SerializationTestEncoder.php, line 27

Class

SerializationTestEncoder

Namespace

Drupal\serialization_test

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.