You are here

public function SupportTicket::fields in Support Ticketing System 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

modules/support_ticket/src/Plugin/migrate/source/d6/SupportTicket.php, line 179
Contains \Drupal\support_ticket\Plugin\migrate\source\d6\SupportTicket.

Class

SupportTicket
Drupal 6 support ticket source from database.

Namespace

Drupal\support_ticket\Plugin\migrate\source\d6

Code

public function fields() {
  $fields = array(
    'nid' => $this
      ->t('Support Ticket ID'),
    'type' => $this
      ->t('Type'),
    // ?
    'title' => $this
      ->t('Title'),
    'body' => $this
      ->t('Body'),
    'format' => $this
      ->t('Format'),
    'teaser' => $this
      ->t('Teaser'),
    'node_uid' => $this
      ->t('Ticket created by (uid)'),
    'revision_uid' => $this
      ->t('Revision authored by (uid)'),
    'created' => $this
      ->t('Created timestamp'),
    'changed' => $this
      ->t('Modified timestamp'),
    'status' => $this
      ->t('Published'),
    'revision' => $this
      ->t('Create new revision'),
    'language' => $this
      ->t('Language (fr, en, ...)'),
    'tnid' => $this
      ->t('The translation set id for this node'),
    'timestamp' => $this
      ->t('The timestamp the latest revision of this node was created.'),
    'state_name' => $this
      ->t('The ticket state'),
    'priority_name' => $this
      ->t('The ticket priority'),
    'message_id' => $this
      ->t('The message_id if this update was created by email.'),
    'assigned' => $this
      ->t('Who the ticket is assigned to (uid)'),
  );
  return $fields;
}