Broken method signature

Created on 8 September 2025, 25 days ago
function usage_data_entity_predelete(EntityInterface $entity) {
  // Clean up usage_data tables when entity is deleted.
  return \Drupal::service('usage_data.storage.database')->deleteUsageData($entity->id(), $entity->getEntityTypeId());
}

Is not updated to call the proper signature, causing fatals in some cases:

  /**
   * Delete usage data from all tables.
   *
   * @param int $entityTypeId
   *   The target entity type id.
   * @param int $entityId
   *   The target entity id.
   */
  public function deleteUsageData($entityTypeId, $entityId);
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada b_sharpe

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