You are here

public function CourseType::fields in Course 3.x

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

modules/course_migrate/src/Plugin/migrate/source/CourseType.php, line 49

Class

CourseType
Drupal 7 course source from database.

Namespace

Drupal\course_migrate\Plugin\migrate\source

Code

public function fields() {
  return [
    'type' => $this
      ->t('The machine-readable name of this profile type.'),
    'name' => $this
      ->t('The human-readable name of this profile type.'),
  ];
}