function xmlsitemap_entity_translation_delete in XML sitemap 8
Same name and namespace in other branches
- 2.x xmlsitemap.module \xmlsitemap_entity_translation_delete()
Implements hook_entity_translation_delete().
File
- ./
xmlsitemap.module, line 1738 - xmlsitemap XML sitemap
Code
function xmlsitemap_entity_translation_delete(EntityInterface $translation) {
\Drupal::service('xmlsitemap.link_storage')
->delete($translation
->getEntityTypeId(), $translation
->id(), $translation
->language()
->getId());
}