function NodeUnpublish::autoSaveContext
Overrides RulesActionBase::autoSaveContext
File
-
src/
Plugin/ RulesAction/ NodeUnpublish.php, line 39
Class
- NodeUnpublish
- Unpublishes a content item.
Namespace
Drupal\rules\Plugin\RulesActionCode
public function autoSaveContext() {
// The node should be auto-saved after the execution.
return [
'node',
];
}