function UserBlock::autoSaveContext

Overrides RulesActionBase::autoSaveContext

File

src/Plugin/RulesAction/UserBlock.php, line 92

Class

UserBlock
Provides "Block User" action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

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