You are here

public function UpgradeRectorForm::submitCustomRector in Upgrade Rector 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

src/Form/UpgradeRectorForm.php, line 185

Class

UpgradeRectorForm

Namespace

Drupal\upgrade_rector\Form

Code

public function submitCustomRector(array &$form, FormStateInterface $form_state) {
  $projects = $this->projectCollector
    ->collectProjects();
  $this
    ->submitRector($projects['custom'][$form_state
    ->getValue([
    'custom',
    'data',
    'project',
  ])]);
}