Comments

rik-dev created an issue. See original summary.

rik-dev’s picture

Status: Active » Needs review
StatusFileSize
new364 bytes
msuthars’s picture

StatusFileSize
new3.95 KB
new3.59 KB

Updated the patch.

Fixed the below issues:
--------------------------------------------------------------------------------
Switch Page Theme
Scanned on Fri, 06/05/2020 - 08:15.

2 errors found. 1 warning found.

modules/contrib/switch_page_theme/src/Form/SwitchPageThemeSettingForm.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├─────────┼──────┼──────────────────────────────────────────────────────────┤
│ Fix now │ 146 │ Call to deprecated function system_list(). Deprecated in │
│ │ │ drupal:8.7.0 and is removed from drupal:9.0.0. Use │
│ │ │ \Drupal::service('theme_handler')->listInfo() instead. │
│ │ │ │
└─────────┴──────┴──────────────────────────────────────────────────────────┘

modules/contrib/switch_page_theme/src/Theme/PageThemeNegotiator.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 88 │ Parameter $pathAlias of method │
│ │ │ Drupal\switch_page_theme\Theme\PageThemeNegotiator::__constr │
│ │ │ uct() has typehint with deprecated interface │
│ │ │ Drupal\Core\Path\AliasManagerInterface. Deprecated in │
│ │ │ drupal:8.8.0 and is removed from drupal:9.0.0. Use │
│ │ │ Drupal\path_alias\AliasManagerInterface. │
│ │ │ │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

modules/contrib/switch_page_theme/switch_page_theme.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check │ 0 │ Add core_version_requirement: ^8 || ^9 to │
│ manually │ │ modules/contrib/switch_page_theme/switch_page_theme.info.yml │
│ │ │ to designate that the module is compatible with Drupal 9. │
│ │ │ See https://drupal.org/node/3070687. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

agentrickard’s picture

The DomainLoader service was deprecated for Drupal 9. Use DomainStorage instead.

See patch in #3156842: Domain loader doesn't exist in Drupal 8.

mrinalini9’s picture

StatusFileSize
new5.37 KB
new2.4 KB

Updated patch #3 as per suggested in #4, please review.

ruslan piskarov’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.
Tested both:
drupal-9-3145213-2.patch
3145213-5.patch

ggh’s picture

When can we expect a stable release for this module ported for Drupal 9,Can we have some timelines

coreyp_1’s picture

Patch 5 saved me on a production D9 site. I would love to see an official release come out for D9!

peterkokot’s picture

[trying to write calmly and politely]Please upgrade this module for Drupal 9.[/trying to write calmly and politely] Thanks.

fjgarlin’s picture

StatusFileSize
new4.97 KB

It actually seems that the 1.x branch has further commits than the 3.x (all commits from 3.x are in 1.x), so I'm rolling the patch for the 1.x branch, which already had some of the elements here included into that branch.

The patch for 3.x works so I'm leaving this as RTBC.
This patch is for 1.x branch, where the patch does not apply and the maintenance of the module seems to be focused on.

  • ashish-deynap committed 19d02e1 on 8.x-1.x authored by fjgarlin
    Issue #3145213 by msuthars, mrinalini9, rik-dev, fjgarlin, ashish-deynap...
ashish-deynap’s picture

Version: 8.x-3.x-dev » 8.x-1.x-dev
Assigned: Unassigned » ashish-deynap
Status: Reviewed & tested by the community » Fixed
Related issues: +#3156842: Domain loader doesn't exist in Drupal 8

Thanks for the patch, @fjgarlin

Porting this patch to 1.x branch and releasing Drupal 9 support soon.

ashish-deynap’s picture

Assigned: ashish-deynap » Unassigned
Status: Fixed » Closed (fixed)
shefik’s picture

When is this going to be released officially?

ahmed.raza’s picture

+1 please release the version for Drupal 9 we have a requirement with multiple roles having different themes on multiple urls. This module is exactly what we need it would be great if we can get a release of this now?

Thanks

attraktive’s picture

In the same case :)
Thanks for this great module !

sagesolutions’s picture

+1 For needing a Drupal 9 version of this module!

jwilson3’s picture

@ashish-deynap, Comment #12 from Feb 2021 you said.

Porting this patch to 1.x branch and releasing Drupal 9 support soon.

Any update on when a 1.0.0 tag with the D9 support could be tagged and released?

Thanks!

jwilson3’s picture

I've created #3246070: Release Switch Page Theme version 4.0.0 with Drupal 9 support for the follow-up task of cutting a release version with D9 support.

jwilson3’s picture