initialParse($configuration)); $this->records = $rawRecords; } /** * Flatten the field hierarchy. Not correct for all cases. * * @param array $record * The raw source values. * * @return array * The flattened values. * * @see \Drupal\reinstall\Plugin\migrate\process\TermParent */ protected function flattenRecord(array $record) { $row = new Row($record); $this->flattenRow($row); return $row->getSource(); } /** * {@inheritdoc} */ public function fields() { $ret = [ 'changed' => 'Modification timestamp', 'default_langcode' => 'ISO 639 default language code', 'description' => 'The entity description', 'langcode' => 'ISO 639 language code', 'name' => 'The term name (PK)', 'parent' => 'Parent term ID', 'path' => 'Optional path alias', 'tid' => 'Taxonomy term ID', 'uuid' => 'UUID', 'vid' => 'Vocabulary ID', 'weight' => 'Poids', ]; return $ret; } /** * {@inheritdoc} */ public function getIds() { $ids = [ 'tid' => [ 'type' => 'integer', ], ]; return $ids; } }