Add documentation to \Drupal\entity_usage\EntityUsageTrackInterface about performacne

Created on 1 February 2025, 21 days ago

Problem/Motivation

Let's add some docs to the interface and perhaps especially \Drupal\entity_usage\EntityUsageTrackInterface::getTargetEntities() about performance considerations.

Proposed resolution

Recommend using entity query over entity loading.
Recommend checking multiple entities existence together.
Recommend using \Drupal\entity_usage\EntityUsageTrackBase::isEntityTypeTracked() the moment you know the entity type you are dealing with to ensure you're not doing work for no reason.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024