public function TestModuleHandler::moduleExists in Lightning Core 8.5
Same name and namespace in other branches
- 8.4 modules/lightning_page/tests/src/Kernel/InstallTest.php \Drupal\Tests\lightning_page\Kernel\TestModuleHandler::moduleExists()
Determines whether a given module is enabled.
Parameters
string $module: The name of the module (without the .module extension).
Return value
bool TRUE if the module is both installed and enabled.
Overrides ModuleHandler::moduleExists
File
- modules/
lightning_page/ tests/ src/ Kernel/ InstallTest.php, line 77
Class
- TestModuleHandler
- Fake module handler that always reports lightning_workflow is installed.
Namespace
Drupal\Tests\lightning_page\KernelCode
public function moduleExists($module) {
return $module === 'lightning_workflow' ? TRUE : parent::moduleExists($module);
}