You are here

public function PublishContent::__destruct in Business Rules 8

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

Delete all expirable key value pairs.

File

src/Plugin/BusinessRulesAction/PublishContent.php, line 32

Class

PublishContent
Class PublishContent.

Namespace

Drupal\business_rules\Plugin\BusinessRulesAction

Code

public function __destruct() {
  $key_value = \Drupal::keyValueExpirable('business_rules.publish_entity');
  $key_value
    ->deleteAll();
}