You are here

protected function EntityShareTaxonomyImport::setLocalIds in Entity Share 7

Set the local ids.

Parameters

object $term: Term to import.

1 call to EntityShareTaxonomyImport::setLocalIds()
EntityShareTaxonomyImport::importDatas in modules/entity_share_taxonomy/includes/entity_share_taxonomy.import.inc
Manage taxonomy for the import.

File

modules/entity_share_taxonomy/includes/entity_share_taxonomy.import.inc, line 88
Class for handling Taxonomy Import.

Class

EntityShareTaxonomyImport
A class to import the Taxonomy.

Code

protected function setLocalIds($term) {

  // Set the local vid (vocabulary id).
  if ($term->entity_type != $this->fieldEntityType) {
    self::setLocalVocabularyId($term);
  }
  $this->entityShareEntity
    ->setLocalEntityIds($term);
}