You are here

public function D7WebformSubmission::query in Webform: Migrate 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d7/D7WebformSubmission.php \Drupal\webform_migrate\Plugin\migrate\source\d7\D7WebformSubmission::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d7/D7WebformSubmission.php, line 23

Class

D7WebformSubmission
Drupal 7 webform submission source from database.

Namespace

Drupal\webform_migrate\Plugin\migrate\source\d7

Code

public function query() {
  $query = $this
    ->select('webform_submissions', 'wfs');
  $query
    ->fields('wfs', [
    'nid',
    'sid',
    'uid',
    'submitted',
    'remote_addr',
    'is_draft',
  ]);
  return $query;
}