You are here

public function ReviewFormSwitcher::getPreviousProperty in User Merge 2.x

Get previous property.

Parameters

string $class: Multi step form class name.

Return value

string If of the property plugin.

Overrides ReviewFormSwitcherInterface::getPreviousProperty

File

src/ReviewFormSwitcher.php, line 83

Class

ReviewFormSwitcher
Class ReviewFormSwitcher.

Namespace

Drupal\usermerge

Code

public function getPreviousProperty($class) : string {
  $previous = '';
  foreach ($this->formList as $id => $review) {
    if ($review == '\\' . $class) {
      break;
    }
    $previous = $id;
  }
  return $previous;
}