You are here

public function SaveEntityVariableAction::__destruct in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/BusinessRulesAction/SaveEntityVariableAction.php \Drupal\business_rules\Plugin\BusinessRulesAction\SaveEntityVariableAction::__destruct()

Delete all expirable key value pairs.

File

src/Plugin/BusinessRulesAction/SaveEntityVariableAction.php, line 37

Class

SaveEntityVariableAction
Class SaveEntityVariableAction.

Namespace

Drupal\business_rules\Plugin\BusinessRulesAction

Code

public function __destruct() {
  $key_value = $this->util
    ->getKeyValueExpirable('save_entity_variable');
  $key_value
    ->deleteAll();
}