diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php index f0146ad40d..24cf2012de 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php @@ -326,7 +326,7 @@ protected function buildHookInfo() { * {@inheritdoc} */ public function getImplementations($hook) { - @trigger_error(printf('Calling %s::getImplementations() directly has been deprecated since Drupal 8.7.0. If you needed this for custom hook invocations, use %s::invoke*With() instead. You can find more detailed information about this change at https://www.drupal.org/node/3000490.', ModuleHandlerInterface::class, ModuleHandlerInterface::class), E_USER_DEPRECATED); + @trigger_error(sprintf('Calling %s::getImplementations() directly has been deprecated since Drupal 8.7.0. If you needed this for custom hook invocations, use %s::invoke*With() instead. You can find more detailed information about this change at https://www.drupal.org/node/3000490.', ModuleHandlerInterface::class, ModuleHandlerInterface::class), E_USER_DEPRECATED); $implementations = $this->getImplementationInfo($hook); return array_keys($implementations); }