You are here

protected function ContentImporter::processTerm in Commerce Demo 8

Same name and namespace in other branches
  1. 8.2 src/ContentImporter.php \Drupal\commerce_demo\ContentImporter::processTerm()

Processes taxonomy term values before importing.

Parameters

array $values: The taxonomy term values.

\Drupal\taxonomy\TermInterface $term: The taxonomy term.

Return value

array The processed taxonomy term values.

1 call to ContentImporter::processTerm()
ContentImporter::importEntity in src/ContentImporter.php
Imports a given entity.

File

src/ContentImporter.php, line 260

Class

ContentImporter
Defines the content importer.

Namespace

Drupal\commerce_demo

Code

protected function processTerm(array $values, TermInterface $term) {
  if (!isset($values['parent'])) {
    $values['parent'] = [
      0,
    ];
  }
  return $values;
}