public function WingsuitStreamWrapper::__construct in Gin Layout Builder 8.2
WingsuitStreamWrapper constructor.
Parameters
ConfigFactory $config_factory: Config factory service.
File
- src/
StreamWrapper/ WingsuitStreamWrapper.php, line 27
Class
- WingsuitStreamWrapper
- Defines the read-only ws-assets:// stream wrapper for theme files.
Namespace
Drupal\wingsuit_companion\StreamWrapperCode
public function __construct(ConfigFactory $config_factory = NULL) {
if ($config_factory === NULL) {
$config_factory = \Drupal::configFactory();
}
$this->config = $config_factory
->get('wingsuit_companion.config');
}