You are here

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

Same name and namespace in other branches
  1. 8.4 src/Form/SourceForm.php \Drupal\backup_migrate\Form\SourceForm::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/SourceForm.php, line 17

Class

SourceForm
@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 Source.");
  $form['id']['#machine_name']['exists'] = '\\Drupal\\backup_migrate\\Entity\\Source::load';
  return $form;
}