'mode' => 'default',
'status' => TRUE,
]);
$this->display
->
setComponent('test_field_display_configurable',
['weight' => 5
]) ->
save();
// Create an entity with fields that are configurable and non-configurable.
$entity_storage =
$this->container->
get('entity_type.manager'
)->
getStorage('entity_test_base_field_display'
);
// @todo Remove langcode workarounds after resolving
// https://www.drupal.org/node/2915034.
$this->entity =
$entity_storage->
createWithSampleValues('entity_test_base_field_display',
[ 'langcode' => 'en',
'langcode_default' => TRUE,
]);
$this->entity->
save();
} /**
* Installs the Layout Builder.
*
* Also configures and reloads the entity display.
*/