function DrupalKernel::moduleData
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::moduleData()
- 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::moduleData()
- 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::moduleData()
- 8.9.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::moduleData()
Returns module data on the filesystem.
Parameters
string $module: The name of the module.
Return value
\Drupal\Core\Extension\Extension|false Returns an Extension object if the module is found, FALSE otherwise.
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 802
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function moduleData($module) {
if (!$this->moduleData) {
$this->setExtensionData();
}
return $this->moduleData[$module] ?? FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.