public function VocabularyPerType::query in Drupal 9
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyPerType.php \Drupal\taxonomy\Plugin\migrate\source\d6\VocabularyPerType::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides Vocabulary::query
File
- core/
modules/ taxonomy/ src/ Plugin/ migrate/ source/ d6/ VocabularyPerType.php, line 25
Class
- VocabularyPerType
- Drupal 6 vocabularies with associated node types source from database.
Namespace
Drupal\taxonomy\Plugin\migrate\source\d6Code
public function query() {
$query = parent::query();
$query
->join('vocabulary_node_types', 'nt', '[v].[vid] = [nt].[vid]');
$query
->fields('nt', [
'type',
]);
return $query;
}