function Vocabulary::fields

Same name in this branch
  1. 11.x core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\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. 10 core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
  6. 10 core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::fields()

Overrides MigrateSourceInterface::fields

File

core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php, line 48

Class

Vocabulary
Drupal 6 vocabularies source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d6

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.'),
        'help' => $this->t('Help text to display for the vocabulary.'),
        'relations' => $this->t('Whether or not related terms are enabled within the vocabulary. (0 = disabled, 1 = enabled)'),
        'hierarchy' => $this->t('The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)'),
        'multiple' => $this->t('Whether or not multiple terms from this vocabulary may be assigned to a node. (0 = disabled, 1 = enabled)'),
        'required' => $this->t('Whether or not terms are required for nodes using this vocabulary. (0 = disabled, 1 = enabled)'),
        'tags' => $this->t('Whether or not free tagging is enabled for the vocabulary. (0 = disabled, 1 = enabled)'),
        'weight' => $this->t('The weight of the vocabulary in relation to other vocabularies.'),
        'parents' => $this->t("The Drupal term IDs of the term's parents."),
        'node_types' => $this->t('The names of the node types the vocabulary may be used with.'),
    ];
}

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