$display = LayoutBuilderEntityViewDisplay::
create([ 'targetEntityType' => 'entity_test',
'bundle' => 'entity_test',
'mode' => 'default',
'status' => TRUE,
]);
$display->
save();
$context = EntityContext::
fromEntity($display);
$this->plugin->
setContext('display',
$context);
$result =
$this->plugin->
getTempstoreKey();
$this->
assertSame('entity_test.entity_test.default',
$result);
} /**
* Tests loading given a display.
*/
public function testLoadFromDisplay() { $display = LayoutBuilderEntityViewDisplay::
create([ 'targetEntityType' => 'entity_test',
'bundle' => 'entity_test',
'mode' => 'default',