You are here

public function DestinationPluginBase::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()

File

src/EntityPlugins/DestinationPluginBase.php, line 17

Class

DestinationPluginBase
Class DestinationPluginBase.

Namespace

BackupMigrate\Drupal\EntityPlugins

Code

public function alterBackupMigrate(BackupMigrateInterface $bam, $key, $options = []) {
  $bam
    ->destinations()
    ->add($key, $this
    ->getObject());
}