@@ -106,6 +116,11 @@ public function __construct(TitleResolverInterface $title_resolver, PluginManage
$this->renderer=$renderer;
$this->renderCache=$render_cache;
$this->rendererConfig=$renderer_config;
if($theme_manager===NULL){
@trigger_error('Calling '.__METHOD__.' without the $theme_manager argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3159762',E_USER_DEPRECATED);
@trigger_error('Calling '.__METHOD__.' without the $theme_manager argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3159506',E_USER_DEPRECATED);
$theme_manager=\Drupal::service('theme.manager');
}
$this->themeManager=$theme_manager;
}
/**
@@ -80,7 +95,8 @@ public static function create(ContainerInterface $container) {
$container->get('tempstore.shared'),
$container->get('request_stack'),
$container->get('date.formatter'),
$container->get('element_info')
$container->get('element_info'),
$container->get('theme.manager')
);
}
@@ -368,7 +384,7 @@ public function getDisplayTab($view) {
// also invoke this on themes.
// @todo remove this after
// https://www.drupal.org/project/drupal/issues/3087455 has been resolved.