ResourceTestBase::$format
Same name in other branches
- 8.9.x core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::format
- 10 core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::format
- 11.x core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::format
The format to use in this test.
A format is the combination of a certain normalizer and a certain serializer.
(The default is 'json' because that doesn't depend on any module.)
Type: string
See also
https://www.drupal.org/developing/api/8/serialization
File
-
core/
modules/ rest/ tests/ src/ Functional/ ResourceTestBase.php, line 39
Class
- ResourceTestBase
- Subclass this for every REST resource, every format and every auth provider.
Namespace
Drupal\Tests\rest\FunctionalCode
protected static $format = 'json';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.