You are here

public static function DrupalConfigHelper::getSourceSelector in Backup and Migrate 5.0.x

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

Parameters

\Drupal\backup_migrate\Core\Main\BackupMigrateInterface $bam:

$title:

$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/Drupal/Config/DrupalConfigHelper.php, line 255

Class

DrupalConfigHelper
@package Drupal\backup_migrate\Drupal\Config

Namespace

Drupal\backup_migrate\Drupal\Config

Code

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