function Node::fields

Same name in this branch
  1. 9 core/modules/node/src/Plugin/migrate/source/d7/Node.php \Drupal\node\Plugin\migrate\source\d7\Node::fields()
Same name in other branches
  1. 8.9.x core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::fields()
  2. 8.9.x core/modules/node/src/Plugin/migrate/source/d7/Node.php \Drupal\node\Plugin\migrate\source\d7\Node::fields()
  3. 10 core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::fields()
  4. 10 core/modules/node/src/Plugin/migrate/source/d7/Node.php \Drupal\node\Plugin\migrate\source\d7\Node::fields()
  5. 11.x core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::fields()
  6. 11.x core/modules/node/src/Plugin/migrate/source/d7/Node.php \Drupal\node\Plugin\migrate\source\d7\Node::fields()

Overrides MigrateSourceInterface::fields

1 call to Node::fields()
NodeRevision::fields in core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php
Returns available fields on the source.
1 method overrides Node::fields()
NodeRevision::fields in core/modules/node/src/Plugin/migrate/source/d6/NodeRevision.php
Returns available fields on the source.

File

core/modules/node/src/Plugin/migrate/source/d6/Node.php, line 160

Class

Node
Drupal 6 node source from database.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

public function fields() {
    $fields = [
        'nid' => $this->t('Node ID'),
        'type' => $this->t('Type'),
        'title' => $this->t('Title'),
        'body' => $this->t('Body'),
        'format' => $this->t('Format'),
        'teaser' => $this->t('Teaser'),
        'node_uid' => $this->t('Node authored by (uid)'),
        'revision_uid' => $this->t('Revision authored by (uid)'),
        'created' => $this->t('Created timestamp'),
        'changed' => $this->t('Modified timestamp'),
        'status' => $this->t('Published'),
        'promote' => $this->t('Promoted to front page'),
        'sticky' => $this->t('Sticky at top of lists'),
        'revision' => $this->t('Create new revision'),
        'language' => $this->t('Language (fr, en, ...)'),
        'tnid' => $this->t('The translation set id for this node'),
        'timestamp' => $this->t('The timestamp the latest revision of this node was created.'),
    ];
    return $fields;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.