You are here

public function ModuleHandler::moduleExists in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::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 ModuleHandlerInterface::moduleExists

File

src/Extension/ModuleHandler.php, line 142
Contains Drupal\service_container\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function moduleExists($module) {
  return $this->drupal7
    ->module_exists($module);
}