function FileSystemForm::__construct

Same name in other branches
  1. 9 core/modules/system/src/Form/FileSystemForm.php \Drupal\system\Form\FileSystemForm::__construct()
  2. 8.9.x core/modules/system/src/Form/FileSystemForm.php \Drupal\system\Form\FileSystemForm::__construct()
  3. 10 core/modules/system/src/Form/FileSystemForm.php \Drupal\system\Form\FileSystemForm::__construct()

Constructs a FileSystemForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config manager.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/FileSystemForm.php, line 62

Class

FileSystemForm
Configure file system settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, DateFormatterInterface $date_formatter, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system) {
    parent::__construct($config_factory, $typedConfigManager);
    $this->dateFormatter = $date_formatter;
    $this->streamWrapperManager = $stream_wrapper_manager;
    $this->fileSystem = $file_system;
}

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