public function Term::fields in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/migrate/source/Term.php \Drupal\taxonomy\Plugin\migrate\source\Term::fields()
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
- core/
modules/ taxonomy/ src/ Plugin/ migrate/ source/ Term.php, line 67 - Contains \Drupal\taxonomy\Plugin\migrate\source\Term.
Class
- Term
- Taxonomy term source from database.
Namespace
Drupal\taxonomy\Plugin\migrate\sourceCode
public function fields() {
$fields = array(
'tid' => $this
->t('The term ID.'),
'vid' => $this
->t('Existing term VID'),
'name' => $this
->t('The name of the term.'),
'description' => $this
->t('The term description.'),
'weight' => $this
->t('Weight'),
'parent' => $this
->t("The Drupal term IDs of the term's parents."),
);
if ($this
->getModuleSchemaVersion('taxonomy') >= 7000) {
$fields['format'] = $this
->t('Format of the term description.');
}
return $fields;
}