function ThemeInstallController::installDefault

Same name in other branches
  1. 10 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 56

Class

ThemeInstallController
Provides an easier way for Nightwatch tests to install themes.

Namespace

Drupal\nightwatch_theme_install_utility\Controller

Code

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.