You are here

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

Get class name.

Parameters

string $property: Id of the property plugin type.

Return value

string Class name of the form

Throws

\Drupal\usermerge\Exception\UserMergeException

Overrides ReviewFormSwitcherInterface::getFormFromProperty

File

src/ReviewFormSwitcher.php, line 72

Class

ReviewFormSwitcher
Class ReviewFormSwitcher.

Namespace

Drupal\usermerge

Code

public function getFormFromProperty($property) : string {
  if (!isset($this->formList[$property])) {
    throw new UserMergeException('Provided property has not been found');
  }
  return $this->formList[$property];
}