You are here

public function NodeEntityTranslation::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php \Drupal\node\Plugin\migrate\source\d7\NodeEntityTranslation::fields()
  2. 9 core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php \Drupal\node\Plugin\migrate\source\d7\NodeEntityTranslation::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 MigrateSourceInterface::fields

File

core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php, line 108

Class

NodeEntityTranslation
Drupal 7 node entity translations source from database.

Namespace

Drupal\node\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'entity_type' => $this
      ->t('The entity type this translation relates to'),
    'entity_id' => $this
      ->t('The entity ID this translation relates to'),
    'revision_id' => $this
      ->t('The entity revision ID this translation relates to'),
    'language' => $this
      ->t('The target language for this translation.'),
    'source' => $this
      ->t('The source language from which this translation was created.'),
    'uid' => $this
      ->t('The author of this translation.'),
    'status' => $this
      ->t('Boolean indicating whether the translation is published (visible to non-administrators).'),
    'translate' => $this
      ->t('A boolean indicating whether this translation needs to be updated.'),
    'created' => $this
      ->t('The Unix timestamp when the translation was created.'),
    'changed' => $this
      ->t('The Unix timestamp when the translation was most recently saved.'),
    'title' => $this
      ->t('Node title'),
    'type' => $this
      ->t('Node type'),
    'promote' => $this
      ->t('Promoted to front page'),
    'sticky' => $this
      ->t('Sticky at top of lists'),
    'log' => $this
      ->t('Revision log'),
    'timestamp' => $this
      ->t('The timestamp the latest revision of this node was created.'),
    'revision_uid' => $this
      ->t('Revision authored by (uid)'),
  ];
}