3 namespace Drupal\taxonomy\Plugin\migrate\source\d6;
6 * Gets all the vocabularies based on the node types that have Taxonomy enabled.
9 * id = "d6_taxonomy_vocabulary_per_type",
10 * source_provider = "taxonomy"
13 class VocabularyPerType extends Vocabulary {
18 public function query() {
19 $query = parent::query();
20 $query->join('vocabulary_node_types', 'nt', 'v.vid = nt.vid');
21 $query->fields('nt', ['type']);
28 public function getIds() {
29 $ids['vid']['type'] = 'integer';
30 $ids['vid']['alias'] = 'nt';
31 $ids['type']['type'] = 'string';