You are here

public function ForwardLog::fields in Forward 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::fields()
  2. 8 src/Plugin/migrate/destination/ForwardLog.php \Drupal\forward\Plugin\migrate\destination\ForwardLog::fields()
Same name and namespace in other branches
  1. 8.3 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::fields()
  2. 8.2 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::fields()
  3. 4.x src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::fields()
  4. 4.0.x src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::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

src/Plugin/migrate/source/ForwardLog.php, line 40

Class

ForwardLog
Forward statistics source.

Namespace

Drupal\forward\Plugin\migrate\source

Code

public function fields() {
  return [
    'path' => $this
      ->t('The internal path of the logged item.'),
    'type' => $this
      ->t('The log type, 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.'),
  ];
}