function FileUsed::query
Same name in other branches
- 9 core/modules/file/tests/modules/file_test_get_ids/src/Plugin/migrate/source/d7/FileUsed.php \Drupal\file_test_get_ids\Plugin\migrate\source\d7\FileUsed::query()
- 10 core/modules/file/tests/modules/file_test_get_ids/src/Plugin/migrate/source/d7/FileUsed.php \Drupal\file_test_get_ids\Plugin\migrate\source\d7\FileUsed::query()
Overrides File::query
File
-
core/
modules/ file/ tests/ modules/ file_test_get_ids/ src/ Plugin/ migrate/ source/ d7/ FileUsed.php, line 22
Class
- FileUsed
- Drupal 7 file source from database restricted to used files.
Namespace
Drupal\file_test_get_ids\Plugin\migrate\source\d7Code
public function query() {
$query = parent::query();
// Join on file_usage table to only migrate used files.
$query->innerJoin('file_usage', 'fu', 'f.fid = fu.fid');
return $query;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.