function DrupalKernel::themeExtensions
Returns theme data on the filesystem.
This allows us to update the container parameters and namespaces during compile, theme install and theme uninstall. This ensures that the container remains in sync before compiler passes.
Parameters
string $theme: The name of the theme.
Return value
\Drupal\Core\Extension\Extension|false Returns an Extension object if the theme is found, FALSE otherwise.
File
-
core/
lib/ Drupal/ Core/ DrupalKernel.php, line 890
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
protected function themeExtensions($theme) : Extension|false {
if (!$this->themeExtensions) {
$this->setExtensionData();
}
return $this->themeExtensions[$theme] ?? FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.