
| Current Path : /var/www/html1/testsite/web/core/modules/node/src/Plugin/migrate/source/d6/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/testsite/web/core/modules/node/src/Plugin/migrate/source/d6/NodeComplete.php |
<?php
namespace Drupal\node\Plugin\migrate\source\d6;
/**
* Gets all node revisions from the source, including translation revisions.
*
* @MigrateSource(
* id = "d6_node_complete",
* source_module = "node"
* )
*/
class NodeComplete extends NodeRevision {
/**
* The join options between the node and the node_revisions_table.
*/
const JOIN = 'n.nid = nr.nid';
/**
* {@inheritdoc}
*/
public function query() {
$query = parent::query();
$query->orderBy('nr.vid');
return $query;
}
/**
* {@inheritdoc}
*/
public function getIds() {
return [
'nid' => [
'type' => 'integer',
'alias' => 'n',
],
'vid' => [
'type' => 'integer',
'alias' => 'nr',
],
'language' => [
'type' => 'string',
'alias' => 'n',
],
];
}
}