Skip to content
Snippets Groups Projects

Issue #3460462 by Grimreaper: Change the LB Add block link text to understand...

Open Florent Torregrosa requested to merge issue/drupal-3460462:3460462-change-the-lb into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -346,7 +346,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s
@@ -346,7 +346,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s
$build[$region]['layout_builder_add_block']['link'] = [
$build[$region]['layout_builder_add_block']['link'] = [
'#type' => 'link',
'#type' => 'link',
// Add one to the current delta since it is zero-indexed.
// Add one to the current delta since it is zero-indexed.
'#title' => $this->t('Add block <span class="visually-hidden">in @section, @region region</span>', ['@section' => $section_label, '@region' => $region_labels[$region]]),
'#title' => $this->t('Add block in @region <span class="visually-hidden">region, @section</span>', ['@section' => $section_label, '@region' => $region_labels[$region]]),
'#url' => Url::fromRoute('layout_builder.choose_block',
'#url' => Url::fromRoute('layout_builder.choose_block',
[
[
'section_storage_type' => $storage_type,
'section_storage_type' => $storage_type,
Loading