join('vocabulary_node_types', 'nt', 'v.vid = nt.vid'); $query->fields('nt', ['type']); return $query; } /** * {@inheritdoc} */ public function getIds() { $ids['vid']['type'] = 'integer'; $ids['vid']['alias'] = 'nt'; $ids['type']['type'] = 'string'; return $ids; } }