Problem/Motivation

Local task labels are always displayed using the content language, ignoring that users can set their admin language preference (if the site has an admin language preference option set in negotiation). Local task label should honor this config and use the admin interface language. Even if they are in a non-admin pages, they are part of the admin interface.

This is very similar to what is being done in #2313309: Admin toolbar, Navigation and contextual links should always be rendered in the admin language (if set), but for local tasks. It's worth to note that in that issue current patches seems to translate Contextual Links as well (if not, probably a new issue should be created).

Proposed resolution

Render local task labels using the admin language config from language negotiation.

Steps to reproduce

1. Install Drupal with standard install profile
2. Enable following modules language, content_translation, locale
3. Visit /admin/config/regional/language/detection and enable "Account administration pages", submit the form.
4. Add new language at /admin/config/regional/language/add
5. Select just added language on "Administration pages language" dropdown at /user/1/edit
6. Visit /user/1 local tabs are still in English.
7. Apply the patch from MR and clear the caches.
8. Visit /user/1 again, and local tabs are now in translated language.

Remaining tasks

Implement it.

User interface changes

Local task labels will be in an admin-appropriate language. Optionally, a checkbox can be added to make this behavior optional.

API changes

Likely none.

CommentFileSizeAuthor
#93 3054641-93-local-tasks-honor-selected-admin-interface-language-11.4.4-default-admin.patch30.22 KBidiaz.roncero
#92 3054641-90-local-tasks-honor-selected-admin-interface-language-11.4.4.patch28.9 KBkevin w
#90 3054641-90-local-tasks-honor-selected-admin-interface-language.patch29.05 KBdench0
#89 3054641-89-local-tasks-honor-selected-admin-interface-language.patch27.48 KBdench0
#85 3054641-85.patch22.48 KBmichael.acampora
#84 3054641-84.patch22.82 KBlinhnm
#82 3054641-D11-MR4757-fdb7bfb8--20230913.diff23.63 KBrecrit
#77 3054641-77.patch21.5 KBseanb
#74 3054641-74.patch39.11 KBsokru
#68 3054641-68.patch38.99 KBredwan jamous
#64 interdiff-3054641-56-61.txt28.27 KBbhanu951
#57 interdiff-3054641-55-56.txt581 bytesjeroent
#57 3054641-56.patch39.05 KBjeroent
#55 interdiff-3054641-54-55.txt2.15 KBjeroent
#55 3054641-55.patch39.04 KBjeroent
#54 3054641-54.patch37.47 KBjeroent
#52 reroll_diff_3054641-48-52.txt12.14 KBankithashetty
#52 3054641-52.patch38.59 KBankithashetty
#49 reroll_diff_45-48.txt17.31 KBimmaculatexavier
#48 3054641-48.patch38.56 KBimmaculatexavier
#45 interdiff-3054641-44-45.txt823 bytesjeroent
#45 3054641-45.patch37.86 KBjeroent
#44 interdiff-3054641-43-44.txt1.66 KBjeroent
#44 3054641-44.patch37.86 KBjeroent
#43 3054641-43.patch37.86 KBjeroent
#38 interdiff-3054641-37-38.txt20.79 KBjeroent
#38 3054641-38.patch37.74 KBjeroent
#37 interdiff-3054641-35-37.txt3.57 KBjeroent
#37 3054641-37.patch14.1 KBjeroent
#35 interdiff-3054641-33-35.txt3.96 KBjeroent
#35 3054641-35-test-only.patch3.01 KBjeroent
#35 3054641-35.patch12.6 KBjeroent
#34 Screenshot 2021-07-20 at 10.01.57.png37.01 KBjeroent
#33 interdiff-3054641-21-33.txt9.47 KBjeroent
#33 3054641-33.patch9.45 KBjeroent
#21 interdiff.3054641.19-21.txt7.16 KBaleevas
#21 3054641-21.patch6.43 KBaleevas
#19 3054641-19.patch1.69 KBweseze
#14 interdiff-3054641-14.txt766 bytesaimevp
#14 3054641-14.patch1.06 KBaimevp
#8 interdiff-3054641-5-8.txt766 bytesyogeshmpawar
#8 3054641-8.patch1.07 KByogeshmpawar
#5 3054641-5.patch1.06 KBlussoluca
#3 3054641-3.patch1.07 KBlussoluca

Issue fork drupal-3054641

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tunic created an issue. See original summary.

tunic’s picture

Issue summary: View changes
lussoluca’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB

Quick attempt to implement this feature

Status: Needs review » Needs work

The last submitted patch, 3: 3054641-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

lussoluca’s picture

Status: Needs work » Needs review
StatusFileSize
new1.06 KB

CS fixes

Status: Needs review » Needs work

The last submitted patch, 5: 3054641-5.patch, failed testing. View results

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar
yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.07 KB
new766 bytes

Maybe this patch will pass the tests. Adding patch with an interdiff.

Status: Needs review » Needs work

The last submitted patch, 8: 3054641-8.patch, failed testing. View results

yogeshmpawar’s picture

Removing the patch.

dionsj’s picture

So far it looks like #5 fixes it on my local test sites (3 different installs with varying degree of customization).
Though it would probably be better to get the failing tests fixed since they seem directly related to the change made by the patch.

malcomio’s picture

With the patch from #8 applied on 8.7.5, I get the following fatal error:

Error: Call to undefined method Drupal\Core\Language\Language::get() in Drupal\Core\Menu\LocalTaskManager->getTitle() (line 205 of core/lib/Drupal/Core/Menu/LocalTaskManager.php).

The patch from #5 seems to work as expected from my (limited) testing so far.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

aimevp’s picture

Status: Needs work » Needs review
StatusFileSize
new1.06 KB
new766 bytes

I used the patch from #8 and got the same error as @malcomio. I took a look at the code and noticed there were 2 ->get() usages.
I created a new patch and a interdiff. The patch seems to be working now on my local install (D8.8.0).

Status: Needs review » Needs work

The last submitted patch, 14: 3054641-14.patch, failed testing. View results

tunic’s picture

Tests failed:

There were 2 errors:

1) Drupal\Tests\Core\Menu\LocalTaskManagerTest::testGetTitle
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "language.default".

/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:1060
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:620
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:588
/var/www/html/core/lib/Drupal.php:158
/var/www/html/core/lib/Drupal/Core/Menu/LocalTaskManager.php:195
/var/www/html/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php:246

2) Drupal\Tests\Core\Menu\LocalTaskManagerTest::testGetTasksBuildWithCacheabilityMetadata
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "language.default".

/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:1060
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:620
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:588
/var/www/html/core/lib/Drupal.php:158
/var/www/html/core/lib/Drupal/Core/Menu/LocalTaskManager.php:195
/var/www/html/core/lib/Drupal/Core/Menu/LocalTaskManager.php:357
/var/www/html/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php:464

I guess those tests need an update and add the "string_translation" and "language.default" services.

emek’s picture

Local actions needs to be translated as well, I tested with the code that is added in the patch for this issue but for local actions and it seems to work well. Should we add it here or make an own issue for that change?

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

weseze’s picture

Status: Needs work » Needs review
StatusFileSize
new1.69 KB

Patch in #14 breaks more then it fixes.

Setting the language back to the site default language breaks everything when you are not viewing the site in the default language. We should set it back to it's previous value instead. There was no method for getting the default langcode from the stringTranslation service, so I added that.

See attached patch. (patch was against 8.8.4, so migh not validate against latest core)

Status: Needs review » Needs work

The last submitted patch, 19: 3054641-19.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

aleevas’s picture

Status: Needs work » Needs review
StatusFileSize
new6.43 KB
new7.16 KB

Trying to fix failed test from previous patch

Status: Needs review » Needs work

The last submitted patch, 21: 3054641-21.patch, failed testing. View results

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

raman.b’s picture

Status: Needs work » Needs review

Unrelated test failure

maxpah’s picture

Patch #21 applied on 9.1 and working well.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

duaelfr’s picture

Status: Needs review » Reviewed & tested by the community

Patch #21 still applies on 9.2.x and 9.3.x and still works. Thanks! :)
The patch looks good and expands test coverage so let's mark it RTBC to let the testbot do its magic on the last release!

anybody’s picture

Confirming RTBC on #21!

larowlan’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests, +Needs subsystem maintainer review
  1. +++ b/core/lib/Drupal/Core/Menu/LocalTaskManager.php
    @@ -127,8 +130,10 @@ class LocalTaskManager extends DefaultPluginManager implements LocalTaskManagerI
    -  public function __construct(ArgumentResolverInterface $argument_resolver, RequestStack $request_stack, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account) {
    +  public function __construct(ArgumentResolverInterface $argument_resolver, RequestStack $request_stack, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account, TranslationInterface $string_translation) {
    
    @@ -137,6 +142,7 @@ public function __construct(ArgumentResolverInterface $argument_resolver, Reques
    +    $this->stringTranslation = $string_translation;
    

    I think we need to provide a BC layer here, i.e. default to NULL, and if not set, use the \Drupal singleton to set the property.

  2. +++ b/core/lib/Drupal/Core/StringTranslation/TranslationManager.php
    @@ -163,6 +163,16 @@ public function setDefaultLangcode($langcode) {
    +  public function getDefaultLangcode() {
    

    We're adding new API here. Are we sure we want to do that?

    Could we instead have setDefaultLangcode return the previously set value (if any)

    Tagging for needs subsystem maintainer review for this point.

  3. I don't see any new tests for the changed behaviour, i.e. I was expecting to see a test that the local tasks were output in a users preferred admin language
larowlan’s picture

Issue tags: +Bug Smash Initiative
gábor hojtsy’s picture

@larowlan asked me to take a look. It is not apparent to me what caching considerations were made, to make sure the tabs are stored / cached with proper caching metadata so language switching will not spill into other versions of the page / component?

phily’s picture

Patch #21 seems to be working well using Drupal 9.2.1 with French (admin + content) and English (content) languages.
Thanks

jeroent’s picture

Status: Needs work » Needs review
StatusFileSize
new9.45 KB
new9.47 KB

Fixed feedback of #29 and #31. Still needs test coverage.

jeroent’s picture

StatusFileSize
new37.01 KB

Also, as mentioned in #2313309: Admin toolbar, Navigation and contextual links should always be rendered in the admin language (if set) when viewing the tabs in e.g. English when on a RTL language, should we update the styling of the tabs?

jeroent’s picture

Issue tags: -Needs tests
StatusFileSize
new12.6 KB
new3.01 KB
new3.96 KB

Added test coverage.

jeroent’s picture

Status: Needs review » Needs work

As discussed with @Gábor Hojtsy on Slack:

Jeroen Tubex 
@Gábor Hojtsy (he/him) @larowlan, I was working on https://www.drupal.org/project/drupal/issues/3054641 and had a couple of questions:
Should the local tasks render in the preferred admin language when the Account administration pages detection method is enabled? Or is setting a preferred admin language enough?
2. when viewing the local tasks in a RTL language and you have configured a preferred admin language e.g. English, should we update the styling of the local tasks?

Gábor Hojtsy (he/him)  2 hours ago
re 1, if you render it in the admin language even if the resulting page will not be the admin language (because you don’t have the account admin pages negotiation method enabled), then that would be a bad experience… why lure poor users into thinking they get to a page with the proper language if they are not?

Gábor Hojtsy (he/him)  2 hours ago
2. yeah I think we need the local tasks to follow the RTL/LTR of the language we display them in, otherwise it would be a mess

Patch is still missing 2 things:

  • Only translate local tasks when the Account administration pages detection method is enabled.
  • Show the tabs in RTL/LTR depending on the admin language.
jeroent’s picture

Status: Needs work » Needs review
StatusFileSize
new14.1 KB
new3.57 KB

Fixed 1.

Still need to fix 2. The easiest solution is probably adding a class to the local tasks block and theming the tabs based on that class instead of the dir="rtl" element on the html tag.

jeroent’s picture

StatusFileSize
new37.74 KB
new20.79 KB

Fixed the last item. Tabs are now shown in the preferred admin language.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

steveoriol’s picture

On D9.2.10 Patch #21 works well.
#38 patch does not apply
and #37 does apply, but is not working for me.

tunic’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Although #21 works well, as reported by #40, several issues were posted later. I think to push forward this issue #38 needs to be rerolled.

jeroent’s picture

one difference between the patch in #21 and #38 is that the account administration pages detection method should be enabled.

jeroent’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new37.86 KB
jeroent’s picture

StatusFileSize
new37.86 KB
new1.66 KB
jeroent’s picture

StatusFileSize
new37.86 KB
new823 bytes
jeroent’s picture

Issue tags: +Needs reroll
jeroent’s picture

Status: Needs review » Needs work
immaculatexavier’s picture

StatusFileSize
new38.56 KB

Rerolled an updated patch against #45

immaculatexavier’s picture

Status: Needs work » Needs review
StatusFileSize
new17.31 KB

Created diff for #48

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

jeroent’s picture

Status: Needs review » Needs work

Patch no longer applies. Needs reroll.

ankithashetty’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new38.59 KB
new12.14 KB

Rerolled the patch in #48, thanks!

simohell’s picture

Something in this is not working right with 9.4.0.
For first logged in page load on each content page (after clearing Durpal's cache) I get two warnings from the lines added to theme.inc:

Notice: Undefined index: primary_attributes in template_preprocess_menu_local_tasks() (line 1994 of core/includes/theme.inc).
Warning: Invalid argument supplied for foreach() in Drupal\Core\Template\Attribute->__construct() (line 85 of core/lib/Drupal/Core/Template/Attribute.php).
Notice: Undefined index: secondary_attributes in template_preprocess_menu_local_tasks() (line 1995 of core/includes/theme.inc).
Warning: Invalid argument supplied for foreach() in Drupal\Core\Template\Attribute->__construct() (line 85 of core/lib/Drupal/Core/Template/Attribute.php).
jeroent’s picture

StatusFileSize
new37.47 KB

I had the same issue as described in #53. I think something went wrong during the reroll.
I created a new one. Let's see if this one works better.

jeroent’s picture

StatusFileSize
new39.04 KB
new2.15 KB

Let's see if this fixes the failing tests.

Status: Needs review » Needs work

The last submitted patch, 55: 3054641-55.patch, failed testing. View results

jeroent’s picture

Status: Needs work » Needs review
StatusFileSize
new39.05 KB
new581 bytes

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

nod_’s picture

D10 version needed
At this time we would need a D10.1.x patch or MR for this issue.

bhanu951’s picture

Assigned: Unassigned » bhanu951
Issue tags: +Needs reroll
tunic’s picture

Status: Needs review » Needs work

Patch doesn't apply to 10.1.x:

can't find file to patch at input line 356
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
|index c2c10e7e4b..ed29af1dc5 100644
|--- a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
|+++ b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
--------------------------

File core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php is not in Drupal 10.1.x. because Classy was removed from core. see #3278415: Remove usages of the JavaScript ES6 build step, the build step itself, and associated dev dependencies.

bhanu951’s picture

Assigned: bhanu951 » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll

Rerolled patch in #57 for 10.x version.

bhanu951’s picture

StatusFileSize
new28.27 KB
voleger’s picture

Status: Needs review » Needs work

Left some review comments.

bhanu951’s picture

Status: Needs work » Needs review
phenaproxima’s picture

Status: Needs review » Needs work

Looks like a test still needs an update...?

redwan jamous’s picture

StatusFileSize
new38.99 KB

Reroll of #57 for 9.5.x

bhanu951’s picture

Status: Needs work » Needs review
smustgrave’s picture

Hiding files to avoid confusion

sokru’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Skimmed the code, tested manually and included the manual steps to reproduce the issue.

pwolanin’s picture

Status: Reviewed & tested by the community » Needs work

Concept makes sense, I think the patch still needs work, however.

This comment is clearly outdated:
+ @trigger_error('The string_translation service must be passed to ' . __NAMESPACE__ . '\LocalTaskManager::__construct. It was added in Drupal 9.3.0 and will be required before Drupal 10.0.0.', E_USER_DEPRECATED);

Also, code style is a little weird - camel case local variables are being added next to snake case existing ones.

This change looks like it's makes calls to \Drupal methods instead of using DI:

+++ b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php
@@ -86,6 +86,18 @@ public function build() {
     $config = $this->configuration;
     $cacheability = new CacheableMetadata();
     $cacheability->addCacheableDependency($this->localTaskManager);
+
+    $userAdminLangcode = \Drupal::currentUser()->getPreferredAdminLangcode(FALSE);
+    $negotiation_method_enabled = \Drupal::moduleHandler()->moduleExists('language') && \Drupal::service('language_negotiator')->isNegotiationMethodEnabled('language-user-admin');
+

Since you could pass the langcode as an option into the t() call, this seems like a bad idea to change the default langcode:

$this->stringTranslation->setDefaultLangcode($originalLangcode);

pwolanin’s picture

Also, I question the approach of setting the langcode when calling getTitle() versus informing the local task plugins about the language they should be using? e.g. set the langcode as part of: LocalTaskManager::createInstance()

I'm also noticing a bug(?) in this local task which is not returning a string:

\Drupal\comment\Plugin\Menu\LocalTask\UnapprovedComments::getTitle()

Or... we should fix the interface/docs

Also… why doesn’t this exist?
\Drupal\Core\StringTranslation\TranslatableMarkup::setOption()

looks like to add/change an option you have to extract the string and options and instantiate a new TranslatableMarkup

sokru’s picture

StatusFileSize
new39.11 KB

Just a reroll from #68 to 9.5.9 in case some other need if for their projects. #72 and #73 needs to be addressed.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

dieterholvoet’s picture

This doesn't seem to work for local tasks added by Views, I guess that's because those translations are stored in config instead of interface translation.

seanb’s picture

StatusFileSize
new21.5 KB

Reroll for 10.1

recrit made their first commit to this issue’s fork.

recrit’s picture

created a new issue branch "3054641-11.x" for 11.x with patch #77 and claro templates updated. Let's use this for development and then only post static patches based on the MR 4757

recrit’s picture

Status: Needs work » Needs review
recrit’s picture

StatusFileSize
new23.63 KB

Attached is a static patch of MR. 4757 at commit fdb7bfb8.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs change record

Not sure if it could be 1 change record but think we will need change records for

new template_process hook + secondary_attributes (not sure if these should be separate)
for new parameter needed for LocalTaskManager

Also may need manual visual testing for the css changes.

Also #76 should that be addressed here?

linhnm’s picture

StatusFileSize
new22.82 KB

Reroll for 10.3. No other changes.

michael.acampora’s picture

StatusFileSize
new22.48 KB

Re-roll for 11.1.

bhanu951 changed the visibility of the branch 3054641-local-tasks-should to hidden.

bhanu951 changed the visibility of the branch 11.x to hidden.

akalam made their first commit to this issue’s fork.

dench0’s picture

dench0’s picture

StatusFileSize
new29.05 KB

11.3.1 patch with fixed preprocess function

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

kevin w’s picture

Re-roll the patch for 11.4.4

idiaz.roncero’s picture

On newer Drupal versions, default_admin (heir to gin) theme is shipped and needs this fix as well.

I added support for default_admin on the previous patch against 11.4.4.

Will try to add it also to the MR but since it has changed to be against main branch, there are a lot of conflicts and I don't know if I will have time to sort them out.

idiaz.roncero’s picture

I was a little bit worried that the 3054641-11.x branch was misleading as it kept the 11.x in the name even if it was moved to be against main, so I allowed myself to create the 3054641-main branch.

Merge conflicts corrected, and I added the missing default_admin twig template.

tunic’s picture

Status: Needs work » Needs review

If I'm not wrong this should be "needs review", right?

tunic’s picture

Status: Needs review » Needs work

Not NR, there are tests failing (PHPCS and PHP Stan).