diff --git a/core/modules/user/lib/Drupal/user/UserStorageController.php b/core/modules/user/lib/Drupal/user/UserStorageController.php index 85acfa3..b1debbc 100644 --- a/core/modules/user/lib/Drupal/user/UserStorageController.php +++ b/core/modules/user/lib/Drupal/user/UserStorageController.php @@ -185,9 +185,9 @@ protected function invokeHook($hook, EntityInterface $entity) { } // Invoke the hook. - \Drupal::moduleHandler()->invokeAll($this->entityType . '_' . $hook, $entity->getBCEntity()); + \Drupal::moduleHandler()->invokeAll($this->entityType . '_' . $hook, array($entity->getBCEntity())); // Invoke the respective entity-level hook. - \Drupal::moduleHandler()->invokeAll('entity_' . $hook, $entity->getBCEntity(), $this->entityType); + \Drupal::moduleHandler()->invokeAll('entity_' . $hook, array($entity->getBCEntity(), $this->entityType)); } /**