You are here

public function NodeUnpromote::autoSaveContext in Rules 8.3

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/NodeUnpromote.php, line 39

Class

NodeUnpromote
Demotes a content item.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function autoSaveContext() {

  // The node should be auto-saved after the execution.
  return [
    'node',
  ];
}