You are here

protected static property ResourceTestBase::$labelFieldName in JSON:API 8.2

Same name and namespace in other branches
  1. 8 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 148

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $labelFieldName = NULL;