public function UnpublishContent::__destruct in Business Rules 8
Same name and namespace in other branches
- 2.x src/Plugin/BusinessRulesAction/UnpublishContent.php \Drupal\business_rules\Plugin\BusinessRulesAction\UnpublishContent::__destruct()
Delete all expirable key value pairs.
File
- src/
Plugin/ BusinessRulesAction/ UnpublishContent.php, line 32
Class
- UnpublishContent
- Class UnpublishContent.
Namespace
Drupal\business_rules\Plugin\BusinessRulesActionCode
public function __destruct() {
$key_value = \Drupal::keyValueExpirable('business_rules.unpublish_entity');
$key_value
->deleteAll();
}