ViewUI::createDuplicate

public ViewUI::createDuplicate()

Creates a duplicate of the entity.

Return value

static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system.

Overrides EntityInterface::createDuplicate

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function createDuplicate() {
  return $this->storage->createDuplicate();
}
doc_Drupal
2016-10-29 09:55:53
Comments
Leave a Comment

Please login to continue.