Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Term.php

function Term::fields

Same name in this branch
  1. 11.1.x core/modules/taxonomy/src/Plugin/migrate/source/d6/Term.php \Drupal\taxonomy\Plugin\migrate\source\d6\Term::fields()

Overrides MigrateSourceInterface::fields

4 calls to Term::fields()
TermLocalizedTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php
Returns available fields on the source.
TermLocalizedTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php
Returns available fields on the source.
TermTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php
Returns available fields on the source.
TermTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php
Returns available fields on the source.
2 methods override Term::fields()
TermLocalizedTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php
Returns available fields on the source.
TermTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php
Returns available fields on the source.

File

core/modules/taxonomy/src/Plugin/migrate/source/d7/Term.php, line 77

Class

Term
Drupal 7 taxonomy term source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

public function fields() {
    $fields = [
        'tid' => $this->t('The term ID.'),
        'vid' => $this->t('Existing term VID'),
        'machine_name' => $this->t('Vocabulary machine name'),
        '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."),
        'format' => $this->t("Format of the term description."),
    ];
    return $fields;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal