public function InstallProfile::__construct in Helper 8
InstallProfileSwitcher constructor.
Parameters
\Drupal\Core\Extension\ExtensionList $profileList: The profile extension list service.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key/value storage factory.
File
- src/
InstallProfile.php, line 69
Class
- InstallProfile
- Helpers related to working with install profiles.
Namespace
Drupal\helperCode
public function __construct(ExtensionList $profileList, ConfigFactoryInterface $configFactory, StateInterface $state, ModuleHandlerInterface $module_handler, KeyValueFactoryInterface $key_value_factory) {
$this->profileList = $profileList;
$this->configFactory = $configFactory;
$this->state = $state;
$this->moduleHandler = $module_handler;
$this->schemaKeyValue = $key_value_factory
->get('system.schema');
}