function NodeRevision::fields
Same name in this branch
- 10 core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()
Same name in other branches
- 9 core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php \Drupal\node\Plugin\migrate\source\d6\NodeRevision::fields()
- 9 core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()
- 8.9.x core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php \Drupal\node\Plugin\migrate\source\d6\NodeRevision::fields()
- 8.9.x core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()
- 11.x core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php \Drupal\node\Plugin\migrate\source\d6\NodeRevision::fields()
- 11.x core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()
Overrides Node::fields
File
-
core/
modules/ node/ src/ Plugin/ migrate/ source/ d6/ NodeRevision.php, line 30
Class
- NodeRevision
- Drupal 6 node revision source from database.
Namespace
Drupal\node\Plugin\migrate\source\d6Code
public function fields() {
// Use all the node fields plus the vid that identifies the version.
return parent::fields() + [
'vid' => $this->t('The primary identifier for this version.'),
'log' => $this->t('Revision Log message'),
'timestamp' => $this->t('Revision timestamp'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.