You are here

public function ConfigurableResourceType::includeCount in JSON:API Extras 8

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

Determine whether to include a collection count.

Return value

bool Whether to include a collection count.

Overrides ResourceType::includeCount

File

src/ResourceType/ConfigurableResourceType.php, line 108

Class

ConfigurableResourceType
Defines a configurable resource type.

Namespace

Drupal\jsonapi_extras\ResourceType

Code

public function includeCount() {
  return $this->configFactory
    ->get('jsonapi_extras.settings')
    ->get('include_count');
}