Skip to content

Commit

Permalink
Merge pull request #26 from open-y-subprojects/v2
Browse files Browse the repository at this point in the history
V2 into main
  • Loading branch information
podarok authored Nov 15, 2023
2 parents 91fd056 + 3681a61 commit 98462cd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ process:
plugin: default_value
source: language
default_value: en
bundle:
plugin: default_value
default_value: menu_link_content
title: title
menu_name: menu_name
link/uri:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,6 @@ process:
plugin: default_value
source: language
default_value: en
bundle:
plugin: default_value
default_value: menu_link_content
title: title
menu_name: menu_name
link/uri:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ source:
id:
type: integer
process:
bundle:
plugin: default_value
default_value: menu_link_content
title: title
menu_name: menu_name
link/uri:
Expand Down
17 changes: 0 additions & 17 deletions modules/openy_demo_nlanding/openy_demo_nlanding.module
Original file line number Diff line number Diff line change
Expand Up @@ -359,23 +359,6 @@ function openy_demo_nlanding_af_pages() {
$ps_node->field_content->entity = $ps_paragraph;
$ps_node->save();

$nid = \Drupal::service('entity_type.manager')
->getStorage('node')->getQuery()->accessCheck(FALSE)
->condition('title', 'Swimming Lessons at the YMCA')
->condition('type', 'landing_page')
->execute();
$nid = reset($nid);
$parent_menu_link = MenuLinkContent::load(39);
// Create menu link.
$menu_link = MenuLinkContent::create([
'title' => 'Swimming Lessons at the YMCA',
'link' => ['uri' => 'entity:node/' . $nid],
'menu_name' => 'main',
'parent' => $parent_menu_link ? 'menu_link_content:' . $parent_menu_link->uuid() : '',
'expanded' => TRUE,
]);
$menu_link->save();

// For some reason af blocks do not have block's id in their
// configuration. This is why we manually ensure they are set up.
$process_paragraphs = function ($prgfs) {
Expand Down

0 comments on commit 98462cd

Please sign in to comment.