function MigrateUpgradeFormBase::buildForm

Same name in other branches
  1. 8.9.x core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::buildForm()
  2. 10 core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::buildForm()
  3. 11.x core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::buildForm()

Overrides FormInterface::buildForm

5 calls to MigrateUpgradeFormBase::buildForm()
CredentialForm::buildForm in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Form constructor.
IdConflictForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IdConflictForm.php
Form constructor.
IncrementalForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IncrementalForm.php
Form constructor.
OverviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/OverviewForm.php
Form constructor.
ReviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
Form constructor.
5 methods override MigrateUpgradeFormBase::buildForm()
CredentialForm::buildForm in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Form constructor.
IdConflictForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IdConflictForm.php
Form constructor.
IncrementalForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IncrementalForm.php
Form constructor.
OverviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/OverviewForm.php
Form constructor.
ReviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
Form constructor.

File

core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php, line 69

Class

MigrateUpgradeFormBase
Form base for the Migrate Upgrade UI.

Namespace

Drupal\migrate_drupal_ui\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
    // Get the current major version.
    [
        $this->destinationSiteVersion,
    ] = explode('.', \Drupal::VERSION, 2);
    $form = [];
    $form['actions']['#type'] = 'actions';
    $form['actions']['submit'] = [
        '#type' => 'submit',
        '#value' => $this->getConfirmText(),
        '#button_type' => 'primary',
        '#weight' => 10,
    ];
    return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.