You are here

function backup_migrate_profile::get_destination in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/profiles.inc \backup_migrate_profile::get_destination()
  2. 6.3 includes/profiles.inc \backup_migrate_profile::get_destination()
  3. 6.2 includes/profiles.inc \backup_migrate_profile::get_destination()
  4. 7.3 includes/profiles.inc \backup_migrate_profile::get_destination()
  5. 7.2 includes/profiles.inc \backup_migrate_profile::get_destination()

Get the destination of the profile.

1 call to backup_migrate_profile::get_destination()
backup_migrate_profile::get_destination_name in includes/profiles.inc
Get the name of the destination.

File

includes/profiles.inc, line 276

Class

backup_migrate_profile
A profile class for crud operations.

Code

function get_destination() {
  backup_migrate_include('destinations');
  if (!empty($this->destination_id) && (empty($this->destination) || $this->destination->destination_id !== $this->destination_id)) {
    $this->destination = backup_migrate_get_destination($this->destination_id);
  }
  return empty($this->destination) ? NULL : $this->destination;
}