You are here

public function NodeRevision::fields in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php \Drupal\node\Plugin\migrate\source\d6\NodeRevision::fields()
  2. 8 core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()
Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php \Drupal\node\Plugin\migrate\source\d7\NodeRevision::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides Node::fields

File

core/modules/node/src/Plugin/migrate/source/d7/NodeRevision.php, line 28
Contains \Drupal\node\Plugin\migrate\source\d7\NodeRevision.

Class

NodeRevision
Drupal 7 node revision source from database.

Namespace

Drupal\node\Plugin\migrate\source\d7

Code

public function fields() {

  // Use all the node fields plus the vid that identifies the version.
  return parent::fields() + array(
    'vid' => t('The primary identifier for this version.'),
    'log' => $this
      ->t('Revision Log message'),
    'timestamp' => $this
      ->t('Revision timestamp'),
  );
}