public function SourceForm::form in Backup and Migrate 8.4
Same name and namespace in other branches
- 5.0.x 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
- Class SourceForm.
Namespace
Drupal\backup_migrate\FormCode
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;
}