You are here

public function ExecutionState::saveChangesLater in Rules 8.3

Mark a variable to be saved later when the execution is finished.

Parameters

string $selector: The data selector that specifies the target object to be saved. Example: node.uid.entity.

Return value

$this

Overrides ExecutionStateInterface::saveChangesLater

File

src/Context/ExecutionState.php, line 179

Class

ExecutionState
The rules execution state.

Namespace

Drupal\rules\Context

Code

public function saveChangesLater($selector) {
  $this->saveLater[$selector] = TRUE;
  return $this;
}