protected static property ResourceTestBase::$labelFieldName in JSON:API 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::labelFieldName
Optionally specify which field is the 'label' field.
Some entities specify a 'label_callback', but not a 'label' entity key. For example: User.
Type: string|null
See also
::getInvalidNormalizedEntityToCreate()
File
- tests/
src/ Functional/ ResourceTestBase.php, line 123
Class
- ResourceTestBase
- Subclass this for every JSON API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected static $labelFieldName = NULL;