public function FileEntityConfigSourceBase::query in Media Migration 8
1 call to FileEntityConfigSourceBase::query()
- FileEntitySourceFieldInstance::query in src/
Plugin/ migrate/ source/ d7/ FileEntitySourceFieldInstance.php
1 method overrides FileEntityConfigSourceBase::query()
- FileEntitySourceFieldInstance::query in src/
Plugin/ migrate/ source/ d7/ FileEntitySourceFieldInstance.php
File
- src/
Plugin/ migrate/ source/ d7/ FileEntityConfigSourceBase.php, line 68
Class
- FileEntityConfigSourceBase
- Base class for config migrate source plugins of file entity migrations.
Namespace
Drupal\media_migration\Plugin\migrate\source\d7Code
public function query() {
[
'types' => $types,
'schemes' => $schemes,
] = $this->configuration;
$query = $this
->getFileEntityBaseQuery();
if ($types) {
$query
->condition('fm.type', explode(static::MULTIPLE_SEPARATOR, $types), 'IN');
}
if ($schemes) {
$query
->where("{$this->getSchemeExpression()} IN (:schemes[])", [
':schemes[]' => explode(static::MULTIPLE_SEPARATOR, $schemes),
]);
}
return $query;
}