public function ForwardLog::fields in Forward 8
Same name in this branch
- 8 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::fields()
- 8 src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
Same name and namespace in other branches
- 8.3 src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
- 8.2 src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
- 4.x src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
- 4.0.x src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
Returns an array of destination fields.
Derived classes must implement fields(), returning a list of available destination fields.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: Unused, will be removed before Drupal 9.0.x. Defaults to NULL.
Return value
array
- Keys: machine names of the fields
- Values: Human-friendly descriptions of the fields.
Overrides MigrateDestinationInterface::fields
File
- src/
Plugin/ migrate/ destination/ ForwardLog.php, line 49
Class
- ForwardLog
- Drupal 8 destination for forward logs.
Namespace
Drupal\forward\Plugin\migrate\destinationCode
public function fields(MigrationInterface $migration = NULL) {
return [
'type' => $this
->t('The entity type, which is always "node".'),
'id' => $this
->t('The entity unique ID from the node ID.'),
'path' => $this
->t('The internal path of the logged item.'),
'action' => $this
->t('The log action, SENT for a forward or REF for a clickthrough.'),
'timestamp' => $this
->t('The date and time the activity was recorded.'),
'uid' => $this
->t('The user ID of the person who performed the action.'),
'hostname' => $this
->t('The IP address of the person who performed the action.'),
];
}