$displays[$new_display_id] = NestedArray::
mergeDeep($displays[$new_display_id],
$display_duplicate);
$displays[$new_display_id]['id'
] =
$new_display_id;
// First set the displays.
$this->
set('display',
$displays);
// Ensure that we just copy display options, which are provided by the new
// display plugin.
$executable->
setDisplay($new_display_id);
$executable->display_handler->
filterByDefinedOptions($displays[$new_display_id]['display_options'
]);
// Update the display settings.
$this->
set('display',
$displays);
return $new_display_id;
} /**
* {@inheritdoc}
*/
public function calculateDependencies() { parent::
calculateDependencies();