You are here

DestinationForm.php in Backup and Migrate 5.0.x

Same filename and directory in other branches
  1. 8.4 src/Form/DestinationForm.php

File

src/Form/DestinationForm.php
View source
<?php

namespace Drupal\backup_migrate\Form;

use Drupal\Core\Form\FormStateInterface;

/**
 *
 *
 * @package Drupal\backup_migrate\Form
 */
class DestinationForm extends WrapperEntityForm {

  /**
   * {@inheritdoc}
   */
  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;
  }

}

Classes

Namesort descending Description
DestinationForm @package Drupal\backup_migrate\Form