function 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 808

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

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.