You are here

public function TransactionExecute::autoSaveContext in Transaction 8

Returns a list of context names that should be auto-saved after execution.

Return value

array A subset of context names as specified in the context definition of this action.

Overrides RulesActionBase::autoSaveContext

File

src/Plugin/RulesAction/TransactionExecute.php, line 111

Class

TransactionExecute
Provides the transaction execute action.

Namespace

Drupal\transaction\Plugin\RulesAction

Code

public function autoSaveContext() {
  if ($this->saveLater) {
    return [
      'transaction',
    ];
  }
  return [];
}