You are here

public function EckEntityBundle::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

File

src/Plugin/migrate/source/d7/EckEntityBundle.php, line 32

Class

EckEntityBundle
Drupal 7 ECK entity bundle source plugin.

Namespace

Drupal\eck\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'id' => $this
      ->t('The primary identifier for a bundle'),
    'entity_type' => $this
      ->t('The entity type this bundle belongs to'),
    'name' => $this
      ->t('The bundle name'),
    'label' => $this
      ->t('A human readable name for the bundle (note that the type is not human readable)'),
    'config' => $this
      ->t('A serialized list of the bundle settings'),
  ];
}