public function PrivateFileSchemeHandler::__construct in Acquia Content Hub 8.2
PrivateFileSchemeHandler constructor.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin id.
mixed $plugin_definition: The definition.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
\Drupal\acquia_contenthub\ContentHubCommonActions $common_actions: Content Hub Common Actions.
Overrides PluginBase::__construct
File
- src/
Plugin/ FileSchemeHandler/ PrivateFileSchemeHandler.php, line 56
Class
- PrivateFileSchemeHandler
- File scheme handler for private files.
Namespace
Drupal\acquia_contenthub\Plugin\FileSchemeHandlerCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, FileSystemInterface $file_system, ContentHubCommonActions $common_actions) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->fileSystem = $file_system;
$this->contentHubCommonActions = $common_actions;
}