public function EckEntityTranslation::query in Entity Construction Kit (ECK) 8
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides EckEntity::query
File
- src/
Plugin/ migrate/ source/ d7/ EckEntityTranslation.php, line 24
Class
- EckEntityTranslation
- Drupal 7 ECK entity translations source plugin.
Namespace
Drupal\eck\Plugin\migrate\source\d7Code
public function query() {
$query = parent::query();
$query
->innerJoin('entity_translation', 'et', 'et.entity_id = eck.id');
$query
->fields('et');
$query
->condition('et.entity_type', $this->entityType);
$query
->condition('et.source', '', '<>');
$query
->orderBy('et.revision_id');
$query
->orderBy('et.language');
return $query;
}