From 4e658ef534a5556272accfa68b1a6c663236d560 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Fri, 29 Apr 2016 21:49:29 +0100 Subject: [PATCH] Issue #2667588 by dimaro, malavya, johnrosswvsu: Document that a module's classes are not available during hook_requirements() 'install' phase --- core/lib/Drupal/Core/Extension/module.api.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php index 9abea30b9fc8..7f65fea19df9 100644 --- a/core/lib/Drupal/Core/Extension/module.api.php +++ b/core/lib/Drupal/Core/Extension/module.api.php @@ -894,6 +894,9 @@ function hook_updater_info_alter(&$updaters) { * Module dependencies do not belong to these installation requirements, * but should be defined in the module's .info.yml file. * + * During installation (when $phase == 'install'), if you need to load a class + * from your module, you'll need to include the class file directly. + * * The 'runtime' phase is not limited to pure installation requirements * but can also be used for more general status information like maintenance * tasks and security issues. -- GitLab