You are here

protected function DrupalFieldablePanelsPanesMigration::query in Fieldable Panels Panes (FPP) 7

@abstract The base source query for this migration.

Return value

QueryConditionInterface

Overrides DrupalMigration::query

1 call to DrupalFieldablePanelsPanesMigration::query()
DrupalFieldablePanelsPanesMigration::__construct in includes/fieldable_panels_pane.migrate.inc
Required arguments:

File

includes/fieldable_panels_pane.migrate.inc, line 376
Support for fieldable_panels_pane destinations.

Class

DrupalFieldablePanelsPanesMigration
Handling specific to a Drupal 7 source for Fieldable Panels Panes.

Code

protected function query() {
  $query = Database::getConnection('default', $this->sourceConnection)
    ->select('fieldable_panels_panes', 'fpp')
    ->fields('fpp', array(
    'fpid',
    'vid',
    'title',
    'link',
    'path',
    'reusable',
    'admin_title',
    'admin_description',
    'category',
    'view_access',
    'edit_access',
    'created',
    'changed',
    'uuid',
    'language',
  ));
  $query
    ->join('fieldable_panels_panes_revision', 'fppv', 'fppv.fpid = fpp.fpid and fppv.vid = fpp.vid');
  $query
    ->fields('fppv', array(
    'uid',
    'log',
    'vuuid',
  ));
  $query
    ->condition('fpp.bundle', $this->sourceType);
  $query
    ->orderBy($this->newOnly ? 'fpp.fpid' : 'fpp.changed');
  return $query;
}