You are here

protected function LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in Layout Builder Symmetric Translations 8

Returns the expected normalization of the entity.

Return value

array

Overrides EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

tests/src/Functional/Rest/LayoutBuilderEntityViewDisplayResourceTestBase.php, line 35

Class

LayoutBuilderEntityViewDisplayResourceTestBase
Provides a base class for testing LayoutBuilderEntityViewDisplay resources.

Namespace

Drupal\Tests\layout_builder_st\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  $expected = parent::getExpectedNormalizedEntity();
  array_unshift($expected['dependencies']['module'], 'layout_builder');
  $expected['hidden'][OverridesSectionStorage::FIELD_NAME] = TRUE;
  $expected['hidden'][OverridesSectionStorage::TRANSLATED_CONFIGURATION_FIELD_NAME] = TRUE;
  $expected['third_party_settings']['layout_builder'] = [
    'enabled' => TRUE,
    'allow_custom' => TRUE,
  ];
  return $expected;
}