'layout_discovery',
];
// A third party setting is added by the entity_test module.
$expected['third_party_settings'
]['entity_test'
] =
['foo' => 'bar'
];
// The visible field is assigned the default region.
$expected['content'
]['foo'
]['region'
] = 'content';
$this->
assertEntityValues($expected,
$entity_display->
toArray());
// Assign a new layout that has default settings and complex dependencies,
// but do not save yet.
$entity_display->
setLayoutId('test_layout_main_and_footer'
);
// The default settings were added.
$expected['third_party_settings'
]['field_layout'
] =
[ 'id' => 'test_layout_main_and_footer',
'settings' =>
[ 'setting_1' => 'Default',
],
];
// The field was moved to the default region.
$expected['content'
]['foo'
] =
[ 'type' => 'visible',