function ControllerBase::create
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::create()
4 methods override ControllerBase::create()
- ContentTranslationController::create in core/
modules/ content_translation/ src/ Controller/ ContentTranslationController.php - Instantiates a new instance of this class.
- CronController::create in core/
modules/ system/ src/ CronController.php - Instantiates a new instance of this class.
- HelpTopicPluginController::create in core/
modules/ help_topics/ src/ Controller/ HelpTopicPluginController.php - Instantiates a new instance of this class.
- UserController::create in core/
modules/ user/ src/ Controller/ UserController.php - Instantiates a new instance of this class.
File
-
core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php, line 119
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\ControllerCode
public static function create(ContainerInterface $container) {
return new static();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.