public function ExtlinkSettingsSaveEventSubscriber::__construct in External Links 8
ExtlinkSettingsSaveEventSubscriber constructor.
Parameters
\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The CSS/JS asset library discovery service.
\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_optimizer: The JS asset optimizer service.
File
- src/
EventSubscriber/ ExtlinkSettingsSaveEventSubscriber.php, line 38
Class
- ExtlinkSettingsSaveEventSubscriber
- Clears JS and asset libraries in response to changes in extlink settings.
Namespace
Drupal\extlink\EventSubscriberCode
public function __construct(LibraryDiscoveryInterface $library_discovery, AssetCollectionOptimizerInterface $js_optimizer) {
$this->libraryDiscovery = $library_discovery;
$this->jsOptimizer = $js_optimizer;
}