function ThemeInstallController::installDefault
Same name in other branches
- 11.x core/modules/system/tests/modules/nightwatch_theme_install_utility/src/Controller/ThemeInstallController.php \Drupal\nightwatch_theme_install_utility\Controller\ThemeInstallController::installDefault()
Install a theme as default.
Parameters
string $theme: The theme to install as the default theme.
Return value
array A render array confirming installation.
1 string reference to 'ThemeInstallController::installDefault'
- nightwatch_theme_install_utility.routing.yml in core/
modules/ system/ tests/ modules/ nightwatch_theme_install_utility/ nightwatch_theme_install_utility.routing.yml - core/modules/system/tests/modules/nightwatch_theme_install_utility/nightwatch_theme_install_utility.routing.yml
File
-
core/
modules/ system/ tests/ modules/ nightwatch_theme_install_utility/ src/ Controller/ ThemeInstallController.php, line 54
Class
- ThemeInstallController
- Provides an easier way for Nightwatch tests to install themes.
Namespace
Drupal\nightwatch_theme_install_utility\ControllerCode
public function installDefault(string $theme) {
return $this->installTheme($theme, 'default');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.