DestinationForm.php in Backup and Migrate 5.0.x
File
src/Form/DestinationForm.php
View source
<?php
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Form\FormStateInterface;
class DestinationForm extends WrapperEntityForm {
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
$form['label']['#description'] = $this
->t("Label for the Backup Destination.");
$form['id']['#machine_name']['exists'] = '\\Drupal\\backup_migrate\\Entity\\Destination::load';
return $form;
}
}