From 1b6eac52d03febb01ca0bea2a9cf83c86a18f437 Mon Sep 17 00:00:00 2001 From: shadcn Date: Tue, 6 Dec 2022 11:38:58 +0400 Subject: [PATCH] ci: test against Drupal 10 (#389) * ci: test against Drupal 10 * ci: configure exclude for Drupal 10 * fix(next): update HTMLRenderer --- .github/workflows/next.yml | 5 ++++- modules/next/src/Render/MainContent/HtmlRenderer.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index f28aa2cd..2c9b871d 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -11,7 +11,10 @@ jobs: strategy: matrix: php: ["8.0", "8.1"] - drupal: ["9.3", "9.4"] + drupal: ["9.3", "9.4", "10.0.0-rc1"] + exclude: + - php: "8.0" + drupal: "10.0.0-rc1" name: Drupal ${{ matrix.drupal }} - PHP ${{ matrix.php }} services: mysql: diff --git a/modules/next/src/Render/MainContent/HtmlRenderer.php b/modules/next/src/Render/MainContent/HtmlRenderer.php index 57f79ddd..675f0750 100644 --- a/modules/next/src/Render/MainContent/HtmlRenderer.php +++ b/modules/next/src/Render/MainContent/HtmlRenderer.php @@ -77,7 +77,7 @@ class HtmlRenderer extends CoreHtmlRenderer { * The theme manager. */ public function __construct(TitleResolverInterface $title_resolver, PluginManagerInterface $display_variant_manager, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RenderCacheInterface $render_cache, array $renderer_config, ConfigFactoryInterface $config_factory, NextEntityTypeManager $next_entity_type_manager, SitePreviewerManagerInterface $site_previewer_manager, ThemeManagerInterface $theme_manager) { - parent::__construct($title_resolver, $display_variant_manager, $event_dispatcher, $module_handler, $renderer, $render_cache, $renderer_config); + parent::__construct($title_resolver, $display_variant_manager, $event_dispatcher, $module_handler, $renderer, $render_cache, $renderer_config, $theme_manager); $this->configFactory = $config_factory; $this->nextEntityTypeManager = $next_entity_type_manager; $this->sitePreviewerManager = $site_previewer_manager;