public function Field::query in Zircon Profile 8
Same name in this branch
- 8 core/modules/views/src/Plugin/views/field/Field.php \Drupal\views\Plugin\views\field\Field::query()
- 8 core/modules/field/src/Plugin/migrate/source/d6/Field.php \Drupal\field\Plugin\migrate\source\d6\Field::query()
- 8 core/modules/field/src/Plugin/migrate/source/d7/Field.php \Drupal\field\Plugin\migrate\source\d7\Field::query()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d6/Field.php \Drupal\field\Plugin\migrate\source\d6\Field::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ Field.php, line 26 - Contains \Drupal\field\Plugin\migrate\source\d6\Field.
Class
- Field
- Drupal 6 field source from database.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
public function query() {
$query = $this
->select('content_node_field', 'cnf')
->fields('cnf', array(
'field_name',
'type',
'global_settings',
'required',
'multiple',
'db_storage',
'module',
'db_columns',
'active',
'locked',
))
->distinct();
// Only import fields which are actually being used.
$query
->innerJoin('content_node_field_instance', 'cnfi', 'cnfi.field_name = cnf.field_name');
return $query;
}