You are here

public function Log::fields in Log entity 2.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/d7/Log.php, line 37

Class

Log
Log source from database.

Namespace

Drupal\log\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('The log ID'),
    'name' => $this
      ->t('The log name'),
    'type' => $this
      ->t('The log type'),
    'uid' => $this
      ->t('The log author ID'),
    'timestamp' => $this
      ->t('Timestamp of the event being logged'),
    'created' => $this
      ->t('Timestamp when the log was created'),
    'changed' => $this
      ->t('Timestamp when the log was last modified'),
    'done' => $this
      ->t('Boolean indicating whether the log is done (the event happened)'),
  ];
  return $fields;
}