@trigger_error(__FUNCTION__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service method get() instead. See https://www.drupal.org/node/3348850',E_USER_DEPRECATED);
return$theme_registry->get();
}
else{
@trigger_error(__FUNCTION__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service method getRuntime() instead. See https://www.drupal.org/node/3348850',E_USER_DEPRECATED);
@@ -272,4 +272,18 @@ public function testLegacyThemeRegistryRebuild() {
$this->assertSame($hooks,$registry->get());
}
/**
* Tests deprecated theme_get_registry function.
*
* @see theme_get_registry()
* @group legacy
*/
publicfunctiontestLegacyThemeGetRegistry(){
$registry=\Drupal::service('theme.registry');
$this->expectDeprecation('theme_get_registry() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service method get() instead. See https://www.drupal.org/node/3348850');
$this->expectDeprecation('theme_get_registry() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service method getRuntime() instead. See https://www.drupal.org/node/3348850');