public function FieldablePanelsPaneRevision::fields in Fieldable Panels Panes (FPP) 1.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 FieldablePanelsPane::fields
File
- src/
Plugin/ migrate/ source/ d7/ FieldablePanelsPaneRevision.php, line 26
Class
- FieldablePanelsPaneRevision
- Drupal 7 node revision source from database.
Namespace
Drupal\fieldable_panels_panes\Plugin\migrate\source\d7Code
public function fields() {
// Use all the fieldable_panels_panes fields plus the vid that
// identifies the version.
return parent::fields() + [
'vid' => $this
->t('The primary identifier for this version.'),
'log' => $this
->t('Revision Log message'),
'timestamp' => $this
->t('Revision timestamp'),
];
}