class UpdateHookRegistryFactory in Drupal 9
Service factory for the versioning update registry.
Hierarchy
- class \Drupal\Core\Update\UpdateHookRegistryFactory implements \Symfony\Component\DependencyInjection\ContainerAwareInterface uses \Symfony\Component\DependencyInjection\ContainerAwareTrait
Expanded class hierarchy of UpdateHookRegistryFactory
1 string reference to 'UpdateHookRegistryFactory'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses UpdateHookRegistryFactory
File
- core/
lib/ Drupal/ Core/ Update/ UpdateHookRegistryFactory.php, line 11
Namespace
Drupal\Core\UpdateView source
class UpdateHookRegistryFactory implements ContainerAwareInterface {
use ContainerAwareTrait;
/**
* Creates a new UpdateHookRegistry instance.
*
* @return \Drupal\Core\Update\UpdateHookRegistry
* The update registry instance.
*/
public function create() {
return new UpdateHookRegistry(array_keys($this->container
->get('module_handler')
->getModuleList()), $this->container
->get('keyvalue')
->get('system.schema'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UpdateHookRegistryFactory:: |
public | function | Creates a new UpdateHookRegistry instance. |