public function FileSystemForm::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/src/Form/FileSystemForm.php \Drupal\system\Form\FileSystemForm::__construct()
- 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\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 56
Class
- FileSystemForm
- Configure file system settings for this site.
Namespace
Drupal\system\FormCode
public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $date_formatter, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system = NULL) {
parent::__construct($config_factory);
$this->dateFormatter = $date_formatter;
$this->streamWrapperManager = $stream_wrapper_manager;
if (!$file_system) {
@trigger_error('Calling FileSystemForm::__construct() without the $file_system argument is deprecated in drupal:8.8.0. The $file_system argument will be required in drupal:9.0.0. See https://www.drupal.org/node/3039255', E_USER_DEPRECATED);
$file_system = \Drupal::service('file_system');
}
$this->fileSystem = $file_system;
}