public function RoleWatchdog::fields in Role Watchdog 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/ RoleWatchdog.php, line 62
Class
- RoleWatchdog
- Drupal 6 role watchdog source from database.
Namespace
Drupal\role_watchdog\Plugin\migrate\source\d6Code
public function fields() {
$fields = [
'hid' => $this
->t('History ID'),
'aid' => $this
->t('User ID of account'),
'rid' => $this
->t('Role ID changed'),
'action' => $this
->t('Action (add or remove) performed'),
'uid' => $this
->t('User ID performing action'),
'stamp' => $this
->t('Time action performed'),
];
return $fields;
}