You are here

function xmlsitemap_entity_insert in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap.module \xmlsitemap_entity_insert()

Implements hook_entity_insert().

File

./xmlsitemap.module, line 1712
xmlsitemap XML sitemap

Code

function xmlsitemap_entity_insert(EntityInterface $entity) {
  if (xmlsitemap_link_bundle_check_enabled($entity
    ->getEntityTypeId(), $entity
    ->bundle())) {
    xmlsitemap_xmlsitemap_process_entity_link($entity);
  }
}