You are here

private function Simplesitemap::get_sitemap_from_db in Simple XML sitemap 8

Gets sitemap from db.

1 call to Simplesitemap::get_sitemap_from_db()
Simplesitemap::initialize in src/Simplesitemap.php

File

src/Simplesitemap.php, line 101
Contains \Drupal\simplesitemap\Simplesitemap.

Class

Simplesitemap
Simplesitemap class.

Namespace

Drupal\simplesitemap

Code

private function get_sitemap_from_db() {
  $this->sitemap = db_query("SELECT * FROM {simplesitemap}")
    ->fetchAllAssoc('id');
}