You are here

protected function RemoveDataFromSessionAction::doExecute in Rules Session Variables 2.0.x

Same name and namespace in other branches
  1. 2.x src/Plugin/RulesAction/RemoveDataFromSessionAction.php \Drupal\rules_session_vars\Plugin\RulesAction\RemoveDataFromSessionAction::doExecute()

File

src/Plugin/RulesAction/RemoveDataFromSessionAction.php, line 65

Class

RemoveDataFromSessionAction
Provides a 'Remove data from session' action.

Namespace

Drupal\rules_session_vars\Plugin\RulesAction

Code

protected function doExecute($data_key) {
  if ($this->session) {
    $this->session
      ->remove($data_key);
  }
}