public TermStorageInterface::getNodeTerms(array $nids, array $vocabs = array(), $langcode = NULL)
Returns all terms used to tag some given nodes.
Parameters
array $nids: Node IDs to retrieve terms for.
array $vocabs: (optional) A vocabularies array to restrict the term search. Defaults to empty array.
string $langcode: (optional) A language code to restrict the term search. Defaults to NULL.
Return value
array An array of nids and the term entities they were tagged with.
File
- core/modules/taxonomy/src/TermStorageInterface.php, line 119
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomy
Code
public function getNodeTerms(array $nids, array $vocabs = array(), $langcode = NULL);
Please login to continue.