ViewUI::duplicateDisplayAsType

public ViewUI::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.

Overrides ViewEntityInterface::duplicateDisplayAsType

File

core/modules/views_ui/src/ViewUI.php, line 1142

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function duplicateDisplayAsType($old_display_id, $new_display_type) {
  return $this->storage->duplicateDisplayAsType($old_display_id, $new_display_type);
}
doc_Drupal
2016-10-29 09:55:54
Comments
Leave a Comment

Please login to continue.