function FieldInstancePerFormDisplay::query

Same name in other branches
  1. 9 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerFormDisplay::query()
  2. 8.9.x core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerFormDisplay::query()
  3. 11.x core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerFormDisplay::query()

Overrides SqlBase::query

File

core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerFormDisplay.php, line 52

Class

FieldInstancePerFormDisplay
Drupal 6 field instance per form display source from database.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function query() {
    $query = $this->select('content_node_field_instance', 'cnfi')
        ->fields('cnfi', [
        'field_name',
        'type_name',
        'weight',
        'label',
        'widget_type',
        'widget_settings',
        'display_settings',
        'description',
        'widget_module',
        'widget_active',
    ])
        ->fields('cnf', [
        'type',
        'module',
    ]);
    $query->join('content_node_field', 'cnf', '[cnfi].[field_name] = [cnf].[field_name]');
    $query->orderBy('cnfi.weight');
    return $query;
}

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