public function File::__construct in Freelinking 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/freelinking/File.php \Drupal\freelinking\Plugin\freelinking\File::__construct()
Initialize method.
Parameters
array $configuration: The plugin configuration array.
string $plugin_id: The plugin ID.
array $plugin_definition: The plugin definition array.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager: The stream wrapper manager.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
Overrides PluginBase::__construct
File
- src/
Plugin/ freelinking/ File.php, line 67
Class
- File
- Freelinking file plugin.
Namespace
Drupal\freelinking\Plugin\freelinkingCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory, StreamWrapperManagerInterface $streamWrapperManager, ModuleHandlerInterface $moduleHandler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->fileSystemConfig = $configFactory
->get('system.file');
$this->streamWrapperManager = $streamWrapperManager;
$this->moduleHandler = $moduleHandler;
}