Implements \Drupal\Core\Extension\ModuleHandlerInterface::load().
Overrides ModuleHandlerInterface::load
public function load($name) {
if (isset($this->loadedFiles[$name])) {
return TRUE;
}
if (isset($this->moduleList[$name])) {
$filename = $this->moduleList[$name];
include_once DRUPAL_ROOT . '/' . $filename;
$this->loadedFiles[$name] = TRUE;
return TRUE;
}
return FALSE;
}