public function SupportTicketReference::query in Support Ticketing System 8
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- modules/
support_ticket/ src/ Plugin/ migrate/ source/ d6/ SupportTicketReference.php, line 36 - Contains \Drupal\support_ticket\Plugin\migrate\source\d6\SupportTicketReference.
Class
- SupportTicketReference
- Drupal 6 support ticket source from database.
Namespace
Drupal\support_ticket\Plugin\migrate\source\d6Code
public function query() {
// Select support ticket / node in its last revision.
$query = $this
->select('support_reference', 'sr')
->distinct()
->fields('sr', array(
'nid',
'rnid',
));
return $query;
}