interface BackupMigrateInterface in Backup and Migrate 5.0.x
The core Backup and Migrate service.
Hierarchy
- interface \Drupal\backup_migrate\Core\Plugin\PluginCallerInterface
- interface \Drupal\backup_migrate\Core\Main\BackupMigrateInterface
Expanded class hierarchy of BackupMigrateInterface
All classes that implement BackupMigrateInterface
10 files declare their use of BackupMigrateInterface
- backup_migrate.module in ./
backup_migrate.module - Primary hook implementations for Backup Migrate.
- DefaultDBSourcePlugin.php in src/
Plugin/ BackupMigrateSource/ DefaultDBSourcePlugin.php - DestinationPluginBase.php in src/
Drupal/ EntityPlugins/ DestinationPluginBase.php - DrupalConfigHelper.php in src/
Drupal/ Config/ DrupalConfigHelper.php - DrupalFilesSourcePlugin.php in src/
Plugin/ BackupMigrateSource/ DrupalFilesSourcePlugin.php
File
- src/
Core/ Main/ BackupMigrateInterface.php, line 12
Namespace
Drupal\backup_migrate\Core\MainView source
interface BackupMigrateInterface extends PluginCallerInterface {
/**
* Backup and Migrate constructor.
*/
public function __construct();
/**
* Perform the backup from a given source, save it to the given destination.
*
* @param string $source_id
* The id of the source to backup.
* @param string $destination_id
* The id of the destination to save the backup to.
*
* @return
*/
public function backup($source_id, $destination_id);
/**
* Perform the restore to a given source.
*
* @param string $source_id
* The id of the source to restore.
* @param string $destination_id
* The id of the destination to read the backup from.
* @param string $file
* The ID of the file to be restored. Only optional when the destination
* does not store multiple files (like browser upload)
*/
public function restore($source_id, $destination_id, $file = NULL);
/**
* Get the list of available destinations.
*
* @return \Drupal\backup_migrate\Core\Plugin\PluginManagerInterface
*/
public function destinations();
/**
* Set the destinations plugin manager.
*
* @param \Drupal\backup_migrate\Core\Plugin\PluginManagerInterface $destinations
*/
public function setDestinationManager(PluginManagerInterface $destinations);
/**
* Get the list of sources.
*
* @return \Drupal\backup_migrate\Core\Plugin\PluginManagerInterface
*/
public function sources();
/**
* Set the sources plugin manager.
*
* @param \Drupal\backup_migrate\Core\Plugin\PluginManagerInterface $sources
*/
public function setSourceManager(PluginManagerInterface $sources);
/**
* Get the service locator.
*
* @return \Drupal\backup_migrate\Core\Service\ServiceManager
*/
public function services();
/**
* Set the service locator.
*
* @param \Drupal\backup_migrate\Core\Service\ServiceManager $services
*/
public function setServiceManager(ServiceManager $services);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BackupMigrateInterface:: |
public | function | Perform the backup from a given source, save it to the given destination. | 1 |
BackupMigrateInterface:: |
public | function | Get the list of available destinations. | 1 |
BackupMigrateInterface:: |
public | function | Perform the restore to a given source. | 1 |
BackupMigrateInterface:: |
public | function | Get the service locator. | 1 |
BackupMigrateInterface:: |
public | function | Set the destinations plugin manager. | 1 |
BackupMigrateInterface:: |
public | function | Set the service locator. | 1 |
BackupMigrateInterface:: |
public | function | Set the sources plugin manager. | 1 |
BackupMigrateInterface:: |
public | function | Get the list of sources. | 1 |
BackupMigrateInterface:: |
public | function | Backup and Migrate constructor. | 1 |
PluginCallerInterface:: |
public | function | Get the plugin manager. | |
PluginCallerInterface:: |
public | function | Inject the plugin manager. |