/**
  * Get a set of results for Foreign Key lookups.
  * @param \WordPress\Tabulate\DB\Table $table    The table to search.
  * @param string                       $operator One of the permitted filter operators.
  * @param string                       $term     The search term.
  * @return string[]
  */
 protected function foreign_key_values_build($table, $operator, $term)
 {
     $table->reset_filters();
     $table->add_filter($table->get_title_column(), $operator, $term);
     $out = array();
     foreach ($table->get_records() as $record) {
         $out[$record->get_primary_key()] = array('value' => $record->get_primary_key(), 'label' => $record->get_title());
     }
     return $out;
 }