You are here

protected static property EntityTestMapFieldTest::$mapValue in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php \Drupal\Tests\jsonapi\Functional\EntityTestMapFieldTest::mapValue

The complex nested value to assign to a @FieldType=map field.

Type: array

File

core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php, line 48

Class

EntityTestMapFieldTest
JSON:API integration test for the "EntityTestMapField" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $mapValue = [
  'key1' => 'value',
  'key2' => 'no, val you',
  'π' => 3.14159,
  TRUE => 42,
  'nested' => [
    'bird' => 'robin',
    'doll' => 'Russian',
  ],
];