You are here

public static function StructureSyncHelper::importMenuLinks in Structure Sync 8

Same name and namespace in other branches
  1. 2.x src/StructureSyncHelper.php \Drupal\structure_sync\StructureSyncHelper::importMenuLinks()

Function to import menu links.

When this function is used without the designated form, you should assign an array with a key value pair for form with key 'style' and value 'full', 'safe' or 'force' to apply that import style.

5 calls to StructureSyncHelper::importMenuLinks()
drush_structure_sync_import_menus in ./structure_sync.drush.inc
Call back function drush_structure_sync_import_menus()
StructureSyncCommands::importMenus in src/Commands/StructureSyncCommands.php
Import menu links
StructureSyncHelper::importMenuLinksForce in src/StructureSyncHelper.php
Function to start importing menu links with the 'force' style.
StructureSyncHelper::importMenuLinksFull in src/StructureSyncHelper.php
Function to start importing menu links with the 'full' style.
StructureSyncHelper::importMenuLinksSafe in src/StructureSyncHelper.php
Function to start importing menu links with the 'safe' style.

File

src/StructureSyncHelper.php, line 70

Class

StructureSyncHelper
Container of functions for importing and exporting content in structure.

Namespace

Drupal\structure_sync

Code

public static function importMenuLinks(array $form, FormStateInterface $form_state = NULL) {
  $menuLinksController = new MenuLinksController();
  $menuLinksController
    ->importMenuLinks($form, $form_state);
}