function TermStorageInterface::nodeCount
Same name in other branches
- 8.9.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::nodeCount()
- 10 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::nodeCount()
- 11.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::nodeCount()
Count the number of nodes in a given vocabulary ID.
Parameters
string $vid: Vocabulary ID to retrieve terms for.
Return value
int A count of the nodes in a given vocabulary ID.
1 method overrides TermStorageInterface::nodeCount()
- TermStorage::nodeCount in core/
modules/ taxonomy/ src/ TermStorage.php - Count the number of nodes in a given vocabulary ID.
File
-
core/
modules/ taxonomy/ src/ TermStorageInterface.php, line 104
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomyCode
public function nodeCount($vid);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.