You are here

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

Get id of property.

Parameters

string $class: Multi step form class name.

Return value

string Property id.

Overrides ReviewFormSwitcherInterface::getPropertyFromForm

File

src/ReviewFormSwitcher.php, line 139

Class

ReviewFormSwitcher
Class ReviewFormSwitcher.

Namespace

Drupal\usermerge

Code

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