public function SimpleSitemapViews::getArgumentsFromIndexCount in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/src/SimpleSitemapViews.php \Drupal\simple_sitemap_views\SimpleSitemapViews::getArgumentsFromIndexCount()
Get the number of rows in the index.
Parameters
\Drupal\Core\Database\Query\ConditionInterface|null $condition: The query conditions.
Return value
int The number of rows.
1 call to SimpleSitemapViews::getArgumentsFromIndexCount()
- SimpleSitemapViews::addArgumentsToIndexByVariant in modules/
simple_sitemap_views/ src/ SimpleSitemapViews.php - Adds view arguments to the index by the sitemap variant.
File
- modules/
simple_sitemap_views/ src/ SimpleSitemapViews.php, line 391
Class
- SimpleSitemapViews
- Class to manage sitemap data for views.
Namespace
Drupal\simple_sitemap_viewsCode
public function getArgumentsFromIndexCount(ConditionInterface $condition = NULL) {
$query = $this->database
->select('simple_sitemap_views', 'ssv');
if (!empty($condition)) {
$query
->condition($condition);
}
return $query
->countQuery()
->execute()
->fetchField();
}