You are here

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

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

Class

MessageTest
JSON API integration test for the "Message" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $labelFieldName = 'subject';