function 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 971 
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function createDuplicate() {
  return $this->storage
    ->createDuplicate();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
