You are here

public function DataProviderVariable::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

modules/restful_example/src/Plugin/resource/variables/DataProviderVariable.php, line 43
Contains \Drupal\restful_example\Plugin\resource\variables\DataProviderVariable.

Class

DataProviderVariable
Class DataProviderVariable.

Namespace

Drupal\restful_example\Plugin\resource\variables

Code

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