You are here

public function WebformMessageManager::render in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 191

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;
}