Skip to content

Commit

Permalink
Merge pull request #863 from City-of-Helsinki/UHF-X_accordion_paragra…
Browse files Browse the repository at this point in the history
…ph_weight

UHF-X Accordion paragraphs weights
  • Loading branch information
khalima authored Dec 10, 2024
2 parents f4d743c + 2d4f0be commit abb361b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
label: Linkki
description: 'Sisäinen tai ulkoinen linkki haluttuun kohteeseen. Linkin teksti -kentän arvo näytetään sivuston käyttäjälle.'
description: 'Lisää sisäisen tai ulkoisen linkin URL-osoite sekä sivulla näkyvä linkkiteksti.'
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
declare(strict_types=1);

/**
* UHF-8835 Update accordion paragraph translations.
* Update accordion paragraph weights.
*/
function helfi_paragraphs_accordion_update_9002(): void {
function helfi_paragraphs_accordion_update_9003(): void {
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_paragraphs_accordion');
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ use Drupal\helfi_platform_config\DTO\ParagraphTypeCollection;
*/
function helfi_paragraphs_accordion_helfi_paragraph_types() : array {
return [
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'columns'),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'image'),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'text'),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'phasing'),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'text', 0),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'image', 1),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'phasing', 2),
new ParagraphTypeCollection('paragraph', 'accordion_item', 'field_accordion_item_content', 'columns', 3),
new ParagraphTypeCollection('paragraph', 'accordion', 'field_accordion_items', 'accordion_item'),
new ParagraphTypeCollection('paragraphs_library_item', 'paragraphs_library_item', 'paragraphs', 'accordion'),
];
Expand Down

0 comments on commit abb361b

Please sign in to comment.