You are here

public static function DrupalConfigHelper::getSourceSelector in Backup and Migrate 8.4

Get a select form item for the given list of sources.

Parameters

\BackupMigrate\Core\Main\BackupMigrateInterface $bam:

$title:

null $default_value:

Return value

array

3 calls to DrupalConfigHelper::getSourceSelector()
BackupMigrateAdvancedBackupForm::buildForm in src/Form/BackupMigrateAdvancedBackupForm.php
Form constructor.
BackupMigrateQuickBackupForm::buildForm in src/Form/BackupMigrateQuickBackupForm.php
Form constructor.
ScheduleForm::form in src/Form/ScheduleForm.php
Gets the actual form array to be built.

File

src/Config/DrupalConfigHelper.php, line 239

Class

DrupalConfigHelper
Class DrupalConfigHelper.

Namespace

BackupMigrate\Drupal\Config

Code

public static function getSourceSelector(BackupMigrateInterface $bam, $title, $default_value = NULL) {
  return DrupalConfigHelper::getPluginSelector($bam
    ->sources(), $title, $default_value);
}