function View::createDuplicate

Same name in other branches
  1. 8.9.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::createDuplicate()
  2. 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::createDuplicate()
  3. 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::createDuplicate()

Overrides ConfigEntityBase::createDuplicate

File

core/modules/views/src/Entity/View.php, line 132

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function createDuplicate() {
    $duplicate = parent::createDuplicate();
    unset($duplicate->executable);
    return $duplicate;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.