You are here

public function RdfMapping::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/rdf/src/Plugin/migrate/source/d7/RdfMapping.php \Drupal\rdf\Plugin\migrate\source\d7\RdfMapping::fields()
  2. 9 core/modules/rdf/src/Plugin/migrate/source/d7/RdfMapping.php \Drupal\rdf\Plugin\migrate\source\d7\RdfMapping::fields()

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

core/modules/rdf/src/Plugin/migrate/source/d7/RdfMapping.php, line 53

Class

RdfMapping
Drupal 7 rdf source from database.

Namespace

Drupal\rdf\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'type' => $this
      ->t('The name of the entity type a mapping applies to (node, user, comment, etc.)'),
    'bundle' => $this
      ->t('The name of the bundle a mapping applies to.'),
    'mapping' => $this
      ->t('The serialized mapping of the bundle type and fields to RDF terms.'),
    'types' => $this
      ->t('RDF types.'),
    'fieldMappings' => $this
      ->t('RDF field mappings.'),
  ];
}