You are here

function xmlsitemap_update_8002 in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap.install \xmlsitemap_update_8002()

Update the path of the frontpage link.

1 call to xmlsitemap_update_8002()
xmlsitemap_update_8003 in ./xmlsitemap.install
Update the path of the frontpage link in case it was reset again.

File

./xmlsitemap.install, line 373
Install, update and uninstall functions for the xmlsitemap module.

Code

function xmlsitemap_update_8002() {
  \Drupal::database()
    ->update('xmlsitemap')
    ->fields([
    'loc' => '/',
  ])
    ->condition('type', 'frontpage')
    ->execute();
}