1

When doing a D7->8 migration, my taxonomy term migration template imports all the taxonomy terms found in the source D7 site. How to filter only the terms that belong to a specific vocabulary? For a node, I simply said:

source:
 plugin: d7_node
 node_type: article

But for terms? Is there something similar?

source:
 plugin: d7_taxonomy_term
 ????

Thanks in advance!

1
source:
  plugin: d7_taxonomy_term
  bundle: tags
  • Perfect, thanks! BTW is the Yaml file structure for migrations documented somewhere? Or do I have to look in the source code/templates? – Tomáš Bažant Jun 9 '17 at 11:00
  • I don't think there something like complete reference to date. The best is to look directly into the code - search for plugin id (d7_taxonomy_term in this case) and then look for $this->configuration in the found class and its parent classes to see the variables that the plugin uses. – Mirsoft Oct 17 '18 at 10:35
  • In addition, most of the classes are described well in phpdoc at the beginning of the class (it's not the case of d7/Term, unfortunately..) – Mirsoft Oct 17 '18 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.