You are here

public function ComponentsInfo::getThemeInfo in Components! 8.2

Retrieves the components info for the given theme.

@internal

Parameters

string $name: The name of the theme.

Return value

array The components info.

File

src/Template/ComponentsInfo.php, line 241

Class

ComponentsInfo
Loads info about components defined in themes or modules.

Namespace

Drupal\components\Template

Code

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

  // No components info.
  return [];
}