public function PublicFileSchemeHandler::__construct in Acquia Content Hub 8.2
PublicFileSchemeHandler constructor.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin id.
mixed $plugin_definition: The definition.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
Overrides PluginBase::__construct
File
- src/
Plugin/ FileSchemeHandler/ PublicFileSchemeHandler.php, line 57
Class
- PublicFileSchemeHandler
- The handler for files with a public file scheme.
Namespace
Drupal\acquia_contenthub\Plugin\FileSchemeHandlerCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->streamWrapperManager = $stream_wrapper_manager;
$this->fileSystem = $file_system;
}