function ThemeController::create

Same name in other branches
  1. 8.9.x core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::create()

Overrides ControllerBase::create

File

core/modules/system/src/Controller/ThemeController.php, line 66

Class

ThemeController
Controller for theme handling.

Namespace

Drupal\system\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('theme_handler'), $container->get('extension.list.theme'), $container->get('config.factory'), $container->get('theme_installer'));
}

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