/**
  * On delete sitemap node.
  *
  * @param NodeInterface $node
  */
 public function onDeleteNode(NodeInterface $node)
 {
     foreach ($node->getTranslations() as $translation) {
         if (null !== ($route = $translation->getRoute())) {
             $this->deleteNodeRoute($node, $route);
         }
         if (null !== ($seoMetadata = $translation->getSeoMetadata())) {
             $this->seoMetadataManager->remove($seoMetadata);
         }
     }
 }