public function Hooks::__construct in Lightning Core 8.5
Same name and namespace in other branches
- 8.2 src/Commands/Hooks.php \Drupal\lightning_core\Commands\Hooks::__construct()
- 8.3 src/Commands/Hooks.php \Drupal\lightning_core\Commands\Hooks::__construct()
- 8.4 src/Commands/Hooks.php \Drupal\lightning_core\Commands\Hooks::__construct()
Hooks constructor.
Parameters
\Drupal\Core\Extension\ProfileExtensionList $profile_list: The profile extension list service.
string $install_profile: The install_profile parameter.
\Drupal\Core\Plugin\CachedDiscoveryClearerInterface $plugin_cache_clearer: The plugin cache clearer service.
File
- src/
Commands/ Hooks.php, line 48
Class
- Hooks
- Implements Drush command hooks.
Namespace
Drupal\lightning_core\CommandsCode
public function __construct(ProfileExtensionList $profile_list, $install_profile, CachedDiscoveryClearerInterface $plugin_cache_clearer) {
$this->profileList = $profile_list;
$this->installProfile = $install_profile;
$this->pluginCacheClearer = $plugin_cache_clearer;
}