You are here

public function Webform::getHandler in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::getHandler()

Returns a specific webform handler.

Parameters

string $handler_id: The webform handler ID.

Return value

\Drupal\webform\Plugin\WebformHandlerInterface The webform handler object.

Overrides WebformInterface::getHandler

File

src/Entity/Webform.php, line 2569

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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