function AdminController::create

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

Overrides AutowireTrait::create

File

core/modules/system/src/Controller/AdminController.php, line 64

Class

AdminController
Controller for admin section.

Namespace

Drupal\system\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('extension.list.module'), $container->get('system.module_admin_links_helper'), $container->get('user.module_permissions_link_helper'));
}

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