public static function PriceModifier::postDelete in Price 8
Same name and namespace in other branches
- 3.x src/Entity/PriceModifier.php \Drupal\price\Entity\PriceModifier::postDelete()
- 3.0.x src/Entity/PriceModifier.php \Drupal\price\Entity\PriceModifier::postDelete()
Acts on deleted entities before the delete hook is invoked.
Used after the entities are deleted but before invoking the delete hook.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postDelete
File
- src/
Entity/ PriceModifier.php, line 70
Class
- PriceModifier
- Defines the entity class.
Namespace
Drupal\price\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
// Clear the entity type cache to reflect the removal.
$storage
->resetCache(array_keys($entities));
}