You are here

private function ReviewFormSwitcher::buildFormList in User Merge 2.x

Build form list.

1 call to ReviewFormSwitcher::buildFormList()
ReviewFormSwitcher::__construct in src/ReviewFormSwitcher.php
MergeAccountsForm constructor.

File

src/ReviewFormSwitcher.php, line 121

Class

ReviewFormSwitcher
Class ReviewFormSwitcher.

Namespace

Drupal\usermerge

Code

private function buildFormList() : void {
  $this->formList[''] = '\\Drupal\\usermerge\\Form\\PickAccountsForm';
  $definitions = $this->propertyPluginManager
    ->getDefinitions();
  foreach ($definitions as $definition) {
    if (empty($definition['review'])) {
      continue;
    }
    if (is_subclass_of($definition['review'], '\\Drupal\\usermerge\\Form\\MultiStepFormBase')) {
      $this->formList[$definition['id']] = $definition['review'];
    }
  }
}