You are here

public function EckEntityTranslation::fields in Entity Construction Kit (ECK) 8

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 EckEntity::fields

File

src/Plugin/migrate/source/d7/EckEntityTranslation.php, line 40

Class

EckEntityTranslation
Drupal 7 ECK entity translations source plugin.

Namespace

Drupal\eck\Plugin\migrate\source\d7

Code

public function fields() {
  return parent::fields() + [
    'entity_type' => $this
      ->t('Entity translation entity type.'),
    'entity_id' => $this
      ->t('Entity translation entity ID.'),
    'revision_id' => $this
      ->t('Entity translation revision ID.'),
    'source' => $this
      ->t('Entity translation source language code.'),
    '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.'),
  ];
}