public function FormsStepsProgressStepAddForm::exists in Forms Steps 8
Determines if the forms steps progress step already exists.
Parameters
string $progress_step_id: The forms steps progress step ID.
Return value
bool TRUE if the forms steps progress step exists, FALSE otherwise.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
Form/ FormsStepsProgressStepAddForm.php, line 111
Class
- FormsStepsProgressStepAddForm
- Class FormsStepsProgressStepAddForm.
Namespace
Drupal\forms_steps\FormCode
public function exists($progress_step_id) {
/** @var \Drupal\forms_steps\FormsStepsInterface $original_forms_steps */
$original_forms_steps = $this->entityTypeManager
->getStorage('forms_steps')
->loadUnchanged($this
->getEntity()
->id());
return $original_forms_steps
->hasProgressStep($progress_step_id);
}