Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The currently used patch for #3044993: Allow synced Layout default Translations: translating labels and inline blocks has an issue when using domain-based language selection.
$form['translate_layout'] = [
'#type' => 'link',
'#title' => $this->t('Translate layout'),
'#weight' => -9,
'#attributes' => ['class' => ['button']],
'#url' => Url::fromUserInput(
Url::fromRoute('<current>')->toString() . '/translate'
),
'#access' => $is_enabled && $is_translatable,
];
Results in an InvalidArgumentException because Url::fromUserInput() gets an absolute URL as argument. I uploaded a new patch #3044993: Allow synced Layout default Translations: translating labels and inline blocks that fixes this.
Comments
Comment #2
MatthijsComment #4
Grayle CreditAttribution: Grayle at Dropsolid commentedComment #5
MatthijsSome files were missing in my previous patch. Please use this one instead: https://www.drupal.org/files/issues/2022-03-04/allow-synced-default-lb-t...
Comment #6
Grayle CreditAttribution: Grayle at Dropsolid commentedUpdated patch