ResourceTestBase::$mimeType
Same name in other branches
- 9 core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::mimeType
- 8.9.x core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::mimeType
- 11.x core/modules/rest/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\rest\Functional\ResourceTestBase::mimeType
The MIME type that corresponds to $format.
(Sadly this cannot be computed automatically yet.)
Type: string
File
-
core/
modules/ rest/ tests/ src/ Functional/ ResourceTestBase.php, line 50
Class
- ResourceTestBase
- Subclass this for every REST resource, every format and every auth provider.
Namespace
Drupal\Tests\rest\FunctionalCode
protected static $mimeType = 'application/json';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.