public function ExportManager::onEntityDelete in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Service/ExportManager.php \Drupal\content_synchronizer\Service\ExportManager::onEntityDelete()
- 3.x src/Service/ExportManager.php \Drupal\content_synchronizer\Service\ExportManager::onEntityDelete()
Action after delete entity.
File
- src/
Service/ ExportManager.php, line 55
Class
- ExportManager
- The export manager.
Namespace
Drupal\content_synchronizer\ServiceCode
public function onEntityDelete(Entity $entity) {
foreach ($this
->getEntitiesExport($entity) as $export) {
$export
->removeEntity($entity);
}
}