ViewEntityInterface::duplicateDisplayAsType

public ViewEntityInterface::duplicateDisplayAsType($old_display_id, $new_display_type)

Duplicates an existing display into a new display type.

For example clone to display a page display as a block display.

Parameters

string $old_display_id: The origin of the duplicated display.

string $new_display_type: The display type of the new display.

Return value

string The display ID of the new display.

File

core/modules/views/src/ViewEntityInterface.php, line 49

Class

ViewEntityInterface
Defines an interface for View storage classes.

Namespace

Drupal\views

Code

public function duplicateDisplayAsType($old_display_id, $new_display_type);
doc_Drupal
2016-10-29 09:54:03
Comments
Leave a Comment

Please login to continue.