protected function AddDataToSessionAction::doExecute in Rules Session Variables 2.0.x
Same name and namespace in other branches
- 2.x src/Plugin/RulesAction/AddDataToSessionAction.php \Drupal\rules_session_vars\Plugin\RulesAction\AddDataToSessionAction::doExecute()
File
- src/
Plugin/ RulesAction/ AddDataToSessionAction.php, line 68
Class
- AddDataToSessionAction
- Provides a 'Add data to session' action.
Namespace
Drupal\rules_session_vars\Plugin\RulesActionCode
protected function doExecute($data_key, $data_value) {
if ($this->session) {
$this->session
->set($data_key, $data_value);
}
}