You are here

protected function LayoutBuilderEntityViewDisplayTest::getExpectedDocument in Layout Builder Symmetric Translations 8

Returns the expected JSON:API document for the entity.

Return value

array A JSON:API response document.

Overrides LayoutBuilderEntityViewDisplayTest::getExpectedDocument

See also

::createEntity()

File

tests/src/Functional/Jsonapi/LayoutBuilderEntityViewDisplayTest.php, line 43

Class

LayoutBuilderEntityViewDisplayTest
JSON:API integration test for the "EntityViewDisplay" config entity type.

Namespace

Drupal\Tests\layout_builder_st\Functional\Jsonapi

Code

protected function getExpectedDocument() {
  $document = parent::getExpectedDocument();
  $document['data']['attributes']['hidden'][OverridesSectionStorage::TRANSLATED_CONFIGURATION_FIELD_NAME] = TRUE;
  return $document;
}