class TestModuleHandler in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 modules/lightning_page/tests/src/Kernel/InstallTest.php \Drupal\Tests\lightning_page\Kernel\TestModuleHandler
Fake module handler that always reports lightning_workflow is installed.
Hierarchy
- class \Drupal\Core\Extension\ModuleHandler implements ModuleHandlerInterface
- class \Drupal\Tests\lightning_page\Kernel\TestModuleHandler
Expanded class hierarchy of TestModuleHandler
File
- modules/
lightning_page/ tests/ src/ Kernel/ InstallTest.php, line 72
Namespace
Drupal\Tests\lightning_page\KernelView source
class TestModuleHandler extends ModuleHandler {
/**
* {@inheritdoc}
*/
public function moduleExists($module) {
return $module === 'lightning_workflow' ? TRUE : parent::moduleExists($module);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ModuleHandler:: |
protected | property | List of alter hook implementations keyed by hook name(s). | |
ModuleHandler:: |
protected | property | Cache backend for storing module hook implementation information. | |
ModuleHandler:: |
protected | property | Whether the cache needs to be written. | |
ModuleHandler:: |
protected | property | Information returned by hook_hook_info() implementations. | |
ModuleHandler:: |
protected | property | List of hook implementations keyed by hook name. | |
ModuleHandler:: |
protected | property | A list of module include file keys. | |
ModuleHandler:: |
protected | property | Boolean indicating whether modules have been loaded. | |
ModuleHandler:: |
protected | property | List of loaded files. | |
ModuleHandler:: |
protected | property | List of installed modules. | |
ModuleHandler:: |
protected | property | The app root. | |
ModuleHandler:: |
protected | property | List of hooks where the implementations have been "verified". | |
ModuleHandler:: |
protected | function | Adds a module or profile to the list of currently active modules. | |
ModuleHandler:: |
public | function |
Adds a module to the list of currently active modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Adds an installation profile to the list of currently active modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Passes alterable variables to specific hook_TYPE_alter() implementations. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Passes alterable variables to deprecated hook_TYPE_alter() implementations. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
protected | function | Builds hook_hook_info() information. | |
ModuleHandler:: |
protected | function | Builds hook implementation information for a given hook name. | |
ModuleHandler:: |
public | function |
Determines which modules require and are required by each module. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Retrieves a list of hooks that are declared through hook_hook_info(). Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
protected | function | Provides information about modules' implementations of a hook. | |
ModuleHandler:: |
public | function |
Determines which modules are implementing a hook. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Returns a module extension object from the currently active modules list. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Returns an array of directories for all enabled modules. Useful for
tasks such as finding a file that exists in all module directories. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Returns the list of currently active modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Gets the human readable name of a given module. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Returns whether a given module implements a given hook. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Invokes a hook in a particular module. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Invokes a hook in all enabled modules that implement it. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Invokes a deprecated hook in all enabled modules that implement it. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Invokes a deprecated hook in a particular module. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Returns whether all modules have been loaded. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Includes a module's .module file. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Loads all enabled modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Loads an include file for each enabled module. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Loads a module include file. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public static | function | Parses a dependency for comparison by drupal_check_incompatibility(). | |
ModuleHandler:: |
public | function |
Reloads all enabled modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Resets the cached list of hook implementations. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function |
Sets an explicit list of currently active modules. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
private | function | Triggers an E_USER_DEPRECATED error if any module implements the hook. | |
ModuleHandler:: |
protected | function | Verifies an array of implementations loaded from the cache, by including the lazy-loaded $module.$group.inc, and checking function_exists(). | |
ModuleHandler:: |
public | function |
Write the hook implementation info to the cache. Overrides ModuleHandlerInterface:: |
|
ModuleHandler:: |
public | function | Constructs a ModuleHandler object. | |
TestModuleHandler:: |
public | function |
Determines whether a given module is enabled. Overrides ModuleHandler:: |