You are here

public function ComponentsInfo::getModuleInfo in Components! 8.2

Retrieves the components info for the given module.

@internal

Parameters

string $name: The name of the module.

Return value

array The components info.

File

src/Template/ComponentsInfo.php, line 205

Class

ComponentsInfo
Loads info about components defined in themes or modules.

Namespace

Drupal\components\Template

Code

public function getModuleInfo($name) {
  $this
    ->init();
  if (isset($this->moduleInfo[$name])) {
    return $this->moduleInfo[$name];
  }

  // No components info.
  return [];
}