NodeComplete.php
Same filename in this branch
Same filename in other branches
- 8.9.x core/modules/node/src/Plugin/migrate/source/d6/NodeComplete.php
- 8.9.x core/modules/node/src/Plugin/migrate/source/d7/NodeComplete.php
- 10 core/modules/node/src/Plugin/migrate/source/d6/NodeComplete.php
- 10 core/modules/node/src/Plugin/migrate/source/d7/NodeComplete.php
- 11.x core/modules/node/src/Plugin/migrate/source/d6/NodeComplete.php
- 11.x core/modules/node/src/Plugin/migrate/source/d7/NodeComplete.php
Namespace
Drupal\node\Plugin\migrate\source\d6File
-
core/
modules/ node/ src/ Plugin/ migrate/ source/ d6/ NodeComplete.php
View source
<?php
namespace Drupal\node\Plugin\migrate\source\d6;
/**
* Drupal 6 all node revisions source, including translation revisions.
*
* For available configuration keys, refer to the parent classes.
*
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
*
* @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',
],
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
NodeComplete | Drupal 6 all node revisions source, including translation revisions. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.