public function ReviewFormSwitcher::hasPrevious in User Merge 2.x
Check if we have the previous form.
Parameters
string $class: Multi step form class name.
Return value
bool Check if we have a previous form.
Overrides ReviewFormSwitcherInterface::hasPrevious
File
- src/
ReviewFormSwitcher.php, line 57
Class
- ReviewFormSwitcher
- Class ReviewFormSwitcher.
Namespace
Drupal\usermergeCode
public function hasPrevious($class) : bool {
$list = $this->formList;
reset($list);
$first_key = key($list);
if ($this->formList[$first_key] == '\\' . $class) {
return FALSE;
}
return TRUE;
}