You are here

public function EckEntity::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 MigrateSourceInterface::fields

1 call to EckEntity::fields()
EckEntityTranslation::fields in src/Plugin/migrate/source/d7/EckEntityTranslation.php
Returns available fields on the source.
1 method overrides EckEntity::fields()
EckEntityTranslation::fields in src/Plugin/migrate/source/d7/EckEntityTranslation.php
Returns available fields on the source.

File

src/Plugin/migrate/source/d7/EckEntity.php, line 106

Class

EckEntity
Drupal 7 ECK Entity source from database.

Namespace

Drupal\eck\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'id' => $this
      ->t('The primary identifier for the entity'),
    'type' => $this
      ->t('The bundle of the entity'),
    'title' => $this
      ->t('Title'),
    'uid' => $this
      ->t('Author'),
    'created' => $this
      ->t('Created'),
    'changed' => $this
      ->t('Changed'),
    'language' => $this
      ->t('Entity language code'),
  ];
}