function Vocabulary::fields

Same name in this branch
  1. 10 core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
Same name in other branches
  1. 9 core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
  2. 9 core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::fields()
  3. 8.9.x core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
  4. 8.9.x core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::fields()
  5. 11.x core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
  6. 11.x core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::fields()

Overrides MigrateSourceInterface::fields

2 calls to Vocabulary::fields()
LanguageContentSettingsTaxonomyVocabulary::fields in core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php
Returns available fields on the source.
VocabularyTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php
Returns available fields on the source.
2 methods override Vocabulary::fields()
LanguageContentSettingsTaxonomyVocabulary::fields in core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php
Returns available fields on the source.
VocabularyTranslation::fields in core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php
Returns available fields on the source.

File

core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php, line 43

Class

Vocabulary
Drupal 7 vocabularies source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'vid' => $this->t('The vocabulary ID.'),
        'name' => $this->t('The name of the vocabulary.'),
        'description' => $this->t('The description of the vocabulary.'),
        'hierarchy' => $this->t('The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)'),
        'module' => $this->t('Module responsible for the vocabulary.'),
        'weight' => $this->t('The weight of the vocabulary in relation to other vocabularies.'),
        'machine_name' => $this->t('Unique machine name of the vocabulary.'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.