You are here

public function TrackerInterface::getTotalItemsCount in Search API 8

Retrieves the total number of items that are being tracked for this index.

Parameters

string|null $datasource_id: (optional) The datasource to filter the total number of items by.

Return value

int The total number of items that are tracked for this index, or for the given datasource on this index.

2 methods override TrackerInterface::getTotalItemsCount()
Basic::getTotalItemsCount in src/Plugin/search_api/tracker/Basic.php
Retrieves the total number of items that are being tracked for this index.
TestTracker::getTotalItemsCount in tests/search_api_test/src/Plugin/search_api/tracker/TestTracker.php
Retrieves the total number of items that are being tracked for this index.

File

src/Tracker/TrackerInterface.php, line 98

Class

TrackerInterface
Defines an interface for index tracker plugins.

Namespace

Drupal\search_api\Tracker

Code

public function getTotalItemsCount($datasource_id = NULL);