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