You are here

public static function StructureSyncHelper::importTaxonomies in Structure Sync 8

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

Function to import taxonomy terms.

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::importTaxonomies()
drush_structure_sync_import_taxonomies in ./structure_sync.drush.inc
Call back function drush_structure_sync_import_taxonomies()
StructureSyncCommands::importTaxonomies in src/Commands/StructureSyncCommands.php
Import the taxonomies
StructureSyncHelper::importTaxonomiesForce in src/StructureSyncHelper.php
Function to start importing taxonomies with the 'force' style.
StructureSyncHelper::importTaxonomiesFull in src/StructureSyncHelper.php
Function to start importing taxonomies with the 'full' style.
StructureSyncHelper::importTaxonomiesSafe in src/StructureSyncHelper.php
Function to start importing taxonomies with the 'safe' style.

File

src/StructureSyncHelper.php, line 46

Class

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

Namespace

Drupal\structure_sync

Code

public static function importTaxonomies(array $form, FormStateInterface $form_state = NULL) {
  $taxonomiesController = new TaxonomiesController();
  $taxonomiesController
    ->importTaxonomies($form, $form_state);
}