You are here

public function DataProviderPlug::count in RESTful 7.2

Counts the total results for the index call.

Return value

int The total number of results for the index call.

Overrides CrudInterface::count

File

src/Plugin/resource/DataProvider/DataProviderPlug.php, line 45
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderPlug.

Class

DataProviderPlug
Class DataProviderPlug.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function count() {
  return count($this
    ->getIndexIds());
}