public function ReferenceFinder::findReferencesFor in Term reference change 8
Finds and loads all entities with a reference to the given term.
Parameters
\Drupal\taxonomy\TermInterface $term: The term to find references to.
Return value
\Drupal\Core\Entity\EntityInterface[] All entities referencing the given term.
Overrides ReferenceFinderInterface::findReferencesFor
File
- src/
ReferenceFinder.php, line 56
Class
- ReferenceFinder
- Finds entities referencing a term.
Namespace
Drupal\term_reference_changeCode
public function findReferencesFor(TermInterface $term) {
return $this
->loadReferencingEntities($term);
}