function ViewUI::setOriginal

Sets the original unchanged entity.

This method may be used as a performance optimization when unchanged entity is already available.

Parameters

\Drupal\Core\Entity\EntityInterface|null $original: The unchanged entity.

Return value

$this

Overrides EntityInterface::setOriginal

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function setOriginal(?EntityInterface $original) : static {
  $this->storage
    ->setOriginal($original);
  return $this;
}

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