private function EntityManager::registerShutdownFunction in Acquia Content Hub 8
Register shutdown function.
1 call to EntityManager::registerShutdownFunction()
- EntityManager::enqueueCandidateEntity in src/
EntityManager.php - Enqueue an entity with an operation to be performed on Content Hub.
File
- src/
EntityManager.php, line 254
Class
- EntityManager
- Provides a service for managing entity actions for Content Hub.
Namespace
Drupal\acquia_contenthubCode
private function registerShutdownFunction() {
if ($this->shutdownFunctionRegistered) {
return;
}
// Register shutdown function to send/delete entities to/from Content Hub.
drupal_register_shutdown_function('acquia_contenthub_bulk_export');
$this->shutdownFunctionRegistered = TRUE;
}