function ThemeStream::getExtension
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ ThemeStream.php, line 40
Class
- ThemeStream
- Defines the read-only theme:// stream wrapper for theme files.
Namespace
Drupal\Core\StreamWrapperCode
protected function getExtension(string $extension_name) : Extension {
return \Drupal::service('theme_handler')->getTheme($extension_name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.