Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Node.php

function Node::fields

Same name in this branch
  1. 11.1.x core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::fields()

Overrides MigrateSourceInterface::fields

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

File

core/modules/node/src/Plugin/migrate/source/d7/Node.php, line 183

Class

Node
Drupal 7 node source from database.

Namespace

Drupal\node\Plugin\migrate\source\d7

Code

public function fields() {
    $fields = [
        'nid' => $this->t('Node ID'),
        'type' => $this->t('Type'),
        'title' => $this->t('Title'),
        '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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal