You are here

protected static property MessageResourceTestBase::$labelFieldName in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::labelFieldName
  2. 9 core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::labelFieldName

Optionally specify which field is the 'label' field. Some entities do not specify a 'label' entity key. For example: User.

Type: string|null

Overrides EntityResourceTestBase::$labelFieldName

See also

::getInvalidNormalizedEntityToCreate

File

core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php, line 26

Class

MessageResourceTestBase

Namespace

Drupal\Tests\contact\Functional\Rest

Code

protected static $labelFieldName = 'subject';