You are here

public function MigrateDestinationDomain::fields in Domain Access 7.3

Returns a list of fields available to be mapped for domains.

Parameters

Migration $migration: Optionally, the migration containing this destination.

Return value

array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.

Overrides MigrateDestination::fields

File

./domain.migrate.inc, line 54
Support for domains in core Drupal objects

Class

MigrateDestinationDomain
Migration class for importing domains into Drupal.

Code

public function fields($migration = NULL) {
  $fields = array(
    'machine_name' => t('An optional machine name for the domain record. Will be generated is necessary.'),
    'subdomain' => t('The domain URL (e.g. example.com), not including a protocol or a path. Required.'),
    'sitename' => t('The human-readable name of the domain. Required.'),
    'scheme' => t('The URL scheme for the domain, either http or https. Optional.'),
    'valid' => t('Binary indicator that the domain is active or not. Optional.'),
    'weight' => t('Signed integer indicating the sort order of the domain. Optional.'),
    'is_default' => t('Binary indicator that this is the default domain. Optional.'),
  );
  return $fields;
}