You are here

public function ResourceType::includeCount in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::includeCount()

Determine whether to include a collection count.

Return value

bool Whether to include a collection count.

1 method overrides ResourceType::includeCount()
CountableResourceType::includeCount in tests/modules/jsonapi_test_collection_count/src/ResourceType/CountableResourceType.php
Determine whether to include a collection count.

File

src/ResourceType/ResourceType.php, line 156

Class

ResourceType
Value object containing all metadata for a JSON API resource type.

Namespace

Drupal\jsonapi\ResourceType

Code

public function includeCount() {

  // By default, do not return counts in collection queries.
  return FALSE;
}