public function UserRoleAdd::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/ UserRoleAdd.php, line 73
Class
- UserRoleAdd
- Provides a 'Add user role' action.
Namespace
Drupal\rules\Plugin\RulesActionCode
public function autoSaveContext() {
if ($this->saveLater) {
return [
'user',
];
}
return [];
}