You are here

public function FormsStepsManager::getFormsStepsById in Forms Steps 8

Get the forms_steps entity by id.

Parameters

string $name: Name of the forms steps.

Return value

null|string Returns the Forms Steps.

File

src/Service/FormsStepsManager.php, line 279

Class

FormsStepsManager
Class FormsStepsManager.

Namespace

Drupal\forms_steps\Service

Code

public function getFormsStepsById(string $name) {

  /** @var \Drupal\forms_steps\Entity\FormsSteps $formsSteps */
  $formsSteps = FormsSteps::load($name);
  if (!$formsSteps) {
    return NULL;
  }
  return $formsSteps;
}