public static function SystemConfigFormBase::create

Instantiates a new instance of this controller.

This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this object should use.

Overrides ControllerInterface::create

9 methods override SystemConfigFormBase::create()
AccountSettingsForm::create in drupal/core/modules/user/lib/Drupal/user/AccountSettingsForm.php
Instantiates a new instance of this controller.
CronForm::create in drupal/core/modules/system/lib/Drupal/system/Form/CronForm.php
Instantiates a new instance of this controller.
ImageToolkitForm::create in drupal/core/modules/system/lib/Drupal/system/Form/ImageToolkitForm.php
Instantiates a new instance of this controller.
PerformanceForm::create in drupal/core/modules/system/lib/Drupal/system/Form/PerformanceForm.php
Instantiates a new instance of this controller.
RegionalForm::create in drupal/core/modules/system/lib/Drupal/system/Form/RegionalForm.php
Instantiates a new instance of this controller.

... See full list

File

drupal/core/modules/system/lib/Drupal/system/SystemConfigFormBase.php, line 44
Contains \Drupal\system\SystemConfigFormBase.

Class

SystemConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\system

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('config.factory'), $container
    ->get('config.context.free'));
}