public function ReviewFormSwitcher::getNextProperty in User Merge 2.x
Get next property.
Parameters
string $class: Multi step form class name.
Return value
string If of the property plugin.
Overrides ReviewFormSwitcherInterface::getNextProperty
File
- src/
ReviewFormSwitcher.php, line 100
Class
- ReviewFormSwitcher
- Class ReviewFormSwitcher.
Namespace
Drupal\usermergeCode
public function getNextProperty($class) : string {
$next = '';
$get_next = FALSE;
foreach ($this->formList as $id => $review) {
if ($review == '\\' . $class) {
$get_next = TRUE;
continue;
}
if ($get_next) {
$next = $id;
break;
}
}
return $next;
}