You are here

public function DestinationForm::form in Backup and Migrate 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Form/DestinationForm.php \Drupal\backup_migrate\Form\DestinationForm::form()

Gets the actual form array to be built.

Overrides WrapperEntityForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

src/Form/DestinationForm.php, line 17

Class

DestinationForm
@package Drupal\backup_migrate\Form

Namespace

Drupal\backup_migrate\Form

Code

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;
}