public static function EntityInterface::preDelete in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::preDelete()
Acts on entities before they are deleted and before hooks are invoked.
Used before the entities are deleted and before invoking the delete hook.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
2 methods override EntityInterface::preDelete()
- EntityBase::preDelete in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Acts on entities before they are deleted and before hooks are invoked.
- ViewUI::preDelete in core/
modules/ views_ui/ src/ ViewUI.php - Acts on entities before they are deleted and before hooks are invoked.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityInterface.php, line 369
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public static function preDelete(EntityStorageInterface $storage, array $entities);