public function FieldInstancePerViewMode::query in Zircon Profile 8
Same name in this branch
- 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::query()
- 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::query()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstancePerViewMode.php, line 58 - Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode.
Class
- FieldInstancePerViewMode
- The field instance per view mode source class.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
public function query() {
$query = $this
->select('content_node_field_instance', 'cnfi')
->fields('cnfi', array(
'field_name',
'type_name',
'weight',
'label',
'display_settings',
'widget_settings',
))
->fields('cnf', array(
'type',
'module',
));
$query
->join('content_node_field', 'cnf', 'cnfi.field_name = cnf.field_name');
$query
->orderBy('weight');
return $query;
}