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\RulesAction

Code

public function autoSaveContext() {
    if ($this->saveLater) {
        return [
            'user',
        ];
    }
    return [];
}