function ThemeInstallController::installAdmin

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::installAdmin()

Install a theme as the admin theme.

Parameters

string $theme: The theme to install as the admin theme.

Return value

array A render array confirming installation.

1 string reference to 'ThemeInstallController::installAdmin'
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 68

Class

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

Namespace

Drupal\nightwatch_theme_install_utility\Controller

Code

public function installAdmin($theme) {
    return $this->installTheme($theme, 'admin');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.