function UserRoleRemove::autoSaveContext

Overrides RulesActionBase::autoSaveContext

File

src/Plugin/RulesAction/UserRoleRemove.php, line 72

Class

UserRoleRemove
Provides a 'Remove user role' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

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