You are here

public function WebformMessageManager::render in Webform 8.5

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

Render message.

Return value

\Drupal\Core\Render\Markup|null A rendered message.

Overrides WebformMessageManagerInterface::render

File

src/WebformMessageManager.php, line 196

Class

WebformMessageManager
Defines the webform message (and login) manager.

Namespace

Drupal\webform

Code

public function render($key) {
  $build = $this
    ->build($key);
  return $build ? $this->renderer
    ->renderPlain($build) : NULL;
}