'non_configurable_field' =>
[ '#markup' => 'Non-configurable',
],
'non_configurable_field_with_extra_field' =>
[ '#markup' => 'Non-configurable with extra field',
],
];
$display =
$this->
prophesize(EntityDisplayWithLayoutInterface::
class);
$display->
getTargetEntityTypeId()->
willReturn('the_entity_type_id'
);
$display->
getTargetBundle()->
willReturn('the_entity_type_bundle'
);
$display->
getLayout()->
willReturn($this->layoutPlugin
);
$display->
getLayoutId()->
willReturn('two_column'
);
$display->
getLayoutSettings()->
willReturn([]);
$display->
getComponents()->
willReturn([ 'test1' =>
[ 'region' => 'right',
],
'test2' =>
[ 'region' => 'unknown_region',
],
'non_configurable_field' =>
[ 'region' => 'left',
],