You are here

protected function SimpleSitemapStorage::getChunkData in Simple XML sitemap 4.x

5 calls to SimpleSitemapStorage::getChunkData()
SimpleSitemapStorage::getCreated in src/Entity/SimpleSitemapStorage.php
SimpleSitemapStorage::getIdByDelta in src/Entity/SimpleSitemapStorage.php
SimpleSitemapStorage::getLinkCount in src/Entity/SimpleSitemapStorage.php
SimpleSitemapStorage::getSitemapString in src/Entity/SimpleSitemapStorage.php
SimpleSitemapStorage::status in src/Entity/SimpleSitemapStorage.php

File

src/Entity/SimpleSitemapStorage.php, line 158

Class

SimpleSitemapStorage

Namespace

Drupal\simple_sitemap\Entity

Code

protected function getChunkData(SimpleSitemapInterface $entity) {
  return \Drupal::database()
    ->select('simple_sitemap', 's')
    ->fields('s', [
    'id',
    'type',
    'delta',
    'sitemap_created',
    'status',
    'link_count',
  ])
    ->condition('s.type', $entity
    ->id())
    ->execute()
    ->fetchAllAssoc('id');
}