modules/acm_sku/src/CategoryManager.php
public function synchronizeTreeOffline($vocabulary, array $categories, $storeId = '') {
    $this->resetResults();
    $this->loadVocabulary($vocabulary);

    // Recurse the category tree and create / update nodes.
    $this->syncCategory($categories, NULL, $storeId);

    return ($this->results);
  }
public function synchronizeTreeOffline($vocabulary, array $categories, $storeId = '') {
    $this->resetResults();
    $this->loadVocabulary($vocabulary);

    // Recurse the category tree and create / update nodes.
    $this->syncCategory($categories, NULL, $storeId);

    return ($this->results);
  }
public function synchronizeTreeOffline ( $ vocabulary , array $ categories , $ storeId = '' ) { $ this -> resetResults ( ) ; $ this -> loadVocabulary ( $ vocabulary ) ; // Recurse the category tree and create / update nodes. $ this -> syncCategory ( $ categories , NULL , $ storeId ) ; return ( $ this -> results ) ; }
Synchronize categories in offline mode, i.e. not connected to connector.

@param string $vocabulary
Vocabulary machine name.
@param array $categories
Category tree to import.
@param string $storeId
Store ID.

@throws \Drupal\Core\TypedData\Exception\ReadOnlyException
If the data is read-only.

@return array
Array summarising updates.
Synchronize categories in offline mode i . e . not connected to connector .