function ProfileField::query

Same name and namespace in other branches
  1. 9 core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::query()
  2. 8.9.x core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::query()
  3. 10 core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::query()

Prepares query object to retrieve data from the source database.

This method should not be called directly. It is called automatically from SqlBase::prepareQuery().

Return value

\Drupal\Core\Database\Query\SelectInterface A Select query object with the source data.

Overrides SqlBase::query

2 calls to ProfileField::query()
ProfileFieldOptionTranslation::query in core/modules/user/src/Plugin/migrate/source/d6/ProfileFieldOptionTranslation.php
Prepares query object to retrieve data from the source database.
ProfileFieldTranslation::query in core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php
Prepares query object to retrieve data from the source database.
2 methods override ProfileField::query()
ProfileFieldOptionTranslation::query in core/modules/user/src/Plugin/migrate/source/d6/ProfileFieldOptionTranslation.php
Prepares query object to retrieve data from the source database.
ProfileFieldTranslation::query in core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php
Prepares query object to retrieve data from the source database.

File

core/modules/user/src/Plugin/migrate/source/ProfileField.php, line 41

Class

ProfileField
Drupal 6/7 profile field source from database.

Namespace

Drupal\user\Plugin\migrate\source

Code

public function query() {
  $this->setTableNames();
  return $this->select($this->fieldTable, 'pf')
    ->fields('pf');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.