You are here

public function LibraryContentTypes::fields in Library 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/d6/LibraryContentTypes.php, line 35

Class

LibraryContentTypes
Drupal 6 library source.

Namespace

Drupal\library\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'name' => 'The content types needing library fields',
    'value' => 'Always 1',
  ];
}