You are here

public function Gauth::fields in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/migrate/source/Gauth.php \Drupal\google_api_client\Plugin\migrate\source\Gauth::fields()
  2. 8.2 src/Plugin/migrate/source/Gauth.php \Drupal\google_api_client\Plugin\migrate\source\Gauth::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/Gauth.php, line 33

Class

Gauth
Drupal 7 user source from database.

Namespace

Drupal\google_api_client\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('Gauth ID'),
    'name' => $this
      ->t('Name'),
    'developer_key' => $this
      ->t('Developer Key'),
    'client_id' => $this
      ->t('Client ID'),
    'client_secret' => $this
      ->t('Client Secret'),
    'services' => $this
      ->t('Services'),
    'access_token' => $this
      ->t('Access Token'),
    'access_type' => $this
      ->t('Access Type'),
    'is_authenticated' => $this
      ->t('Is Authenticated'),
    'uid' => $this
      ->t('User'),
  ];
  return $fields;
}