This is in-line with what's being done in core and also makes sense in general as it allows to get rid of the pesky if ($action == 'edit') and similar checks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

tstoeckler’s picture

Status: Active » Needs review
FileSize
13.46 KB

Here we go.

Status: Needs review » Needs work

The last submitted patch, 2111087-4.patch, failed testing.

tstoeckler’s picture

Status: Needs work » Needs review
FileSize
1.8 KB
13.62 KB

Well, that was only minimally smart of me... :-(

Oops, just realized the weird filename in #2. Interdiff and new patch should still be fine, though (and correctly named).

tstoeckler’s picture

Is this my brain telling me to go to bed?

Weird, though, that this didn't fail locally.

tstoeckler’s picture

+++ b/lib/Drupal/config_translation/Form/ConfigTranslationFormBase.php
@@ -136,6 +150,11 @@ class ConfigTranslationManageForm extends FormBase {
+    // Leave the language context so that configuration accessed later in the
+    // requested is displayed in the correct language.

later in the *request*

tstoeckler’s picture

Nice, so this passed. I won't reroll for #6, though.
Since this still includes #2111013: Site information is displayed in the wrong language on the site information translation page it will need to be rerolled anyway once that is in.
@Gábor Hojtsy: Or if you want to commit the two together (i.e. this patch directly) maybe you can fix the comment pre-commit?!
I don't really care.

Gábor Hojtsy’s picture

Gábor Hojtsy’s picture

FileSize
2.02 KB
36.43 KB

Rolled in separate messages as discussed in #2110491-19: Modernize and clean-up controller and forms.

Status: Needs review » Needs work

The last submitted patch, 2111087-9.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
1.99 KB
38.42 KB

With fix for tests, now testing separate messages as well.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Awesome, I totally forgot about that!
The interdiffs are RTBC if this comes back green. Since this isn't core, marking the whole patch RTBC as well :-)

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Yay, committed! Thanks a lot again!

Gábor Hojtsy’s picture

BTW hook_menu() for routing was recently removed in #2106709: Remove legacy router backward compatibility layer, so now its only used for other things, and we only use it for contextual links, since there is no replacement yet (#2084463: Convert contextual links to a plugin system similar to local tasks/actions for that). So I'm not sure we are limited in terms of deepness in menus anymore(?). Re the hook_menu() limitation mentioned in the commit :)

tstoeckler’s picture

Well the contextual links are the ones that hit the parent limit, right? I.e. the contextual links on some fields or something if I remember correctly. So I think we need to wait on #2084463: Convert contextual links to a plugin system similar to local tasks/actions. But I didn't actually try it out, it might be that this actually works already. :-)

Gábor Hojtsy’s picture

Yeah maybe. Did not try it either :)

Automatically closed -- issue fixed for 2 weeks with no activity.