You are here

public function ContactCategory::query in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/contact/src/Plugin/migrate/source/ContactCategory.php, line 26
Contains \Drupal\contact\Plugin\migrate\source\ContactCategory.

Class

ContactCategory
Contact category source from database.

Namespace

Drupal\contact\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('contact', 'c')
    ->fields('c', array(
    'cid',
    'category',
    'recipients',
    'reply',
    'weight',
    'selected',
  ));
  $query
    ->orderBy('cid');
  return $query;
}