You are here

public function FieldInstanceOptionTranslation::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldInstanceOptionTranslation::query()
  2. 9 core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldInstanceOptionTranslation::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides FieldOptionTranslation::query

File

core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php, line 23

Class

FieldInstanceOptionTranslation
Drupal 6 i18n field instance option labels source from database.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function query() {
  $query = parent::query();
  $query
    ->join('content_node_field_instance', 'cnfi', '[cnfi].[field_name] = [cnf].[field_name]');
  $query
    ->addField('cnfi', 'type_name');
  return $query;
}