class UpdateHookRegistryFactory
Same name in other branches
- 9 core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory
- 11.x core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory
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
Deprecated
in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateHookRegistry instead.
See also
https://www.drupal.org/node/3423659
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 16
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() {
@trigger_error(__NAMESPACE__ . '\\UpdateHookRegistryFactory is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Update\\UpdateHookRegistry instead. See https://www.drupal.org/node/3423659', E_USER_DEPRECATED);
return new UpdateHookRegistry($this->container
->get('module_handler')
->getModuleList(), $this->container
->get('keyvalue'));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UpdateHookRegistryFactory::create | public | function | Creates a new UpdateHookRegistry instance. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.