public function Importer::execute in Search API Synonym 8
Execute the import of an array with synonyms.
Parameters
array $items: Raw synonyms data.
array $settings: Import settings.
Return value
array Array with info about the result.
File
- src/
Import/ Importer.php, line 74
Class
- Importer
- Importer class.
Namespace
Drupal\search_api_synonym\ImportCode
public function execute(array $items, array $settings) {
// Prepare items.
$items = $this
->prepare($items, $settings);
// Create synonyms.
$results = $this
->createSynonyms($items, $settings);
return $results;
}