You are here

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

Check if we have the next form.

Parameters

string $class: Multi step form class name.

Return value

bool Check if we have a next form.

Overrides ReviewFormSwitcherInterface::hasNext

File

src/ReviewFormSwitcher.php, line 43

Class

ReviewFormSwitcher
Class ReviewFormSwitcher.

Namespace

Drupal\usermerge

Code

public function hasNext($class) : bool {
  $keys = array_keys($this->formList);
  $last_key = end($keys);
  if ($this->formList[$last_key] == '\\' . $class) {
    return FALSE;
  }
  return TRUE;
}