Find Entity References
find_entity_referencesIdentify which Drupal bundles contain reference fields pointing to a specific entity type. Filter results by bundle or field name to see where references can exist.
Instructions
Find which bundles use reference fields targeting an entity type.
Answers "where are these used?" at the configuration level: for
entity_type ("taxonomy_term", "node", "media", ...) it lists every
field on every bundle whose storage targets that type, e.g. which
content types have a tags or category field. Filter by the
referencing bundle or by field_name.
This reads field configuration, not content: it reports where
references can live, not which individual rows currently point at
which entity. For the data, query the field's table with db_query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| bundle | No | ||
| field_name | No | ||
| entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||