public function CustomFilterMigrationSource::fields in Custom filter 2.0.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
- src/
Plugin/ migrate/ source/ CustomFilterMigrationSource.php, line 21
Class
- CustomFilterMigrationSource
- Migration source for Custom Filter entities.
Namespace
Drupal\customfilter\Plugin\migrate\sourceCode
public function fields() {
return [
'fid' => $this
->t('The custom filter internal ID'),
'type' => $this
->t('The custom filter machine name'),
'name' => $this
->t('The custom filter human name'),
'description' => $this
->t('Description'),
'shorttip' => $this
->t('Short tip'),
'longtip' => $this
->t('Long tip'),
'cache' => $this
->t('Cacheability'),
];
}