You are here

public function Vocabulary::fields in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/taxonomy/src/Plugin/migrate/source/d6/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary::fields()
  2. 8 core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::fields()
Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary::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/d7/Vocabulary.php, line 42
Contains \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary.

Class

Vocabulary
Drupal 7 vocabularies source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

public function fields() {
  return array(
    '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 achine name of the vocabulary.'),
  );
}