/** * Get a select form item for the given list of sources * * @param \BackupMigrate\Core\Main\BackupMigrateInterface $bam * @param $title * @return array */ public static function getDestinationSelector(BackupMigrateInterface $bam, $title) { return DrupalConfigHelper::getPluginSelector($bam->destinations(), $title); }
/** * {@inheritdoc} */ public function alterBackupMigrate(BackupMigrateInterface $bam, $key, $options = []) { $bam->destinations()->add($key, $this->getObject()); }