/** * @return true[] */ public function getBootstrapModules() { $bootstrap_modules = array(); foreach ($this->discoverModuleFilenames('module') as $name => $filename) { $php = file_get_contents($filename); foreach (PureFunctions::bootstrapHooks() as $hook) { if (FALSE !== strpos($php, 'function ' . $name . '_' . $hook)) { $bootstrap_modules[$name] = TRUE; break; } } } return $bootstrap_modules; }