public function SourcePluginBase::alterBackupMigrate in Backup and Migrate 8.4
Alter the backup and migrate object to add the source and required services.
Parameters
\BackupMigrate\Core\Main\BackupMigrateInterface $bam: The BackupMigrate object to add plugins and services to.
$key: The id of the source to add.
array $options: The alter options.
Return value
mixed
Overrides WrapperPluginBase::alterBackupMigrate
See also
hook_backup_migrate_service_object_alter()
3 methods override SourcePluginBase::alterBackupMigrate()
- DefaultDBSourcePlugin::alterBackupMigrate in src/
Plugin/ BackupMigrateSource/ DefaultDBSourcePlugin.php - Alter the backup and migrate object to add the source and required services.
- DrupalFilesSourcePlugin::alterBackupMigrate in src/
Plugin/ BackupMigrateSource/ DrupalFilesSourcePlugin.php - Alter the backup and migrate object to add the source and required services.
- EntireSiteSourcePlugin::alterBackupMigrate in src/
Plugin/ BackupMigrateSource/ EntireSiteSourcePlugin.php - Alter the backup and migrate object to add the source and required services.
File
- src/
EntityPlugins/ SourcePluginBase.php, line 17
Class
- SourcePluginBase
- Class SourcePluginBase.
Namespace
BackupMigrate\Drupal\EntityPluginsCode
public function alterBackupMigrate(BackupMigrateInterface $bam, $key, $options = []) {
$bam
->sources()
->add($key, $this
->getObject());
}