You are here

protected static property UserTest::$labelFieldName in JSON:API 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/UserTest.php \Drupal\Tests\jsonapi\Functional\UserTest::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

Overrides ResourceTestBase::$labelFieldName

See also

::getInvalidNormalizedEntityToCreate()

File

tests/src/Functional/UserTest.php, line 57

Class

UserTest
JSON API integration test for the "User" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $labelFieldName = 'name';