public function TestTracker::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.
Overrides TrackerInterface::getTotalItemsCount
File
- tests/
search_api_test/ src/ Plugin/ search_api/ tracker/ TestTracker.php, line 101
Class
- TestTracker
- Provides a tracker implementation which uses a FIFO-like processing order.
Namespace
Drupal\search_api_test\Plugin\search_api\trackerCode
public function getTotalItemsCount($datasource_id = NULL) {
$this
->logMethodCall(__FUNCTION__, func_get_args());
return 0;
}