You are here

function xmlsitemap_entity_translation_delete in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_entity_translation_delete()

Implements hook_entity_translation_delete().

File

./xmlsitemap.module, line 1698
xmlsitemap XML sitemap

Code

function xmlsitemap_entity_translation_delete(EntityInterface $translation) {
  \Drupal::service('xmlsitemap.link_storage')
    ->delete($translation
    ->getEntityTypeId(), $translation
    ->id(), $translation
    ->language()
    ->getId());
}