Skip to content

Commit

Permalink
UHF-8975: Updated the order of front page paragraph types.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Jan 16, 2024
1 parent 63c36e0 commit 7c3f74d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions public/modules/custom/helfi_etusivu/helfi_etusivu.module
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ function helfi_etusivu_helfi_paragraph_types() : array {
'node' => [
'landing_page' => [
'field_content' => [
'front_page_latest_news',
'front_page_top_news',
'current',
'event_list',
'current' => 15,
'front_page_top_news' => 16,
'front_page_latest_news' => 17,
'event_list' => 18,
],
],
'page' => [
'field_lower_content' => [
'front_page_latest_news',
'front_page_latest_news' => 15,
],
],
],
Expand All @@ -157,8 +157,8 @@ function helfi_etusivu_helfi_paragraph_types() : array {
foreach ($entities as $entityTypeId => $bundles) {
foreach ($bundles as $bundle => $fields) {
foreach ($fields as $field => $paragraphTypes) {
foreach ($paragraphTypes as $paragraphType) {
$enabled[] = new ParagraphTypeCollection($entityTypeId, $bundle, $field, $paragraphType);
foreach ($paragraphTypes as $paragraphType => $weight) {
$enabled[] = new ParagraphTypeCollection($entityTypeId, $bundle, $field, $paragraphType, $weight);
}
}
}
Expand Down

0 comments on commit 7c3f74d

Please sign in to comment.