function UserRoleAdd::autoSaveContext
Overrides RulesActionBase::autoSaveContext
File
-
src/
Plugin/ RulesAction/ UserRoleAdd.php, line 74
Class
- UserRoleAdd
- Provides a 'Add user role' action.
Namespace
Drupal\rules\Plugin\RulesActionCode
public function autoSaveContext() {
if ($this->saveLater) {
return [
'user',
];
}
return [];
}