You are here

public function YamlForm::getHandler in YAML Form 8

Returns a specific form handler.

Parameters

string $handler_id: The form handler ID.

Return value

\Drupal\yamlform\YamlFormHandlerInterface The form handler object.

Overrides YamlFormInterface::getHandler

File

src/Entity/YamlForm.php, line 1291

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

public function getHandler($handler) {
  return $this
    ->getHandlers()
    ->get($handler);
}