You are here

public function WebformMessageManagerInterface::append in Webform 8.5

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

Append inline message message to a render array.

Parameters

array $build: A render array.

string $key: The name of webform settings message to be displayed.

string $type: (optional) The message's type. Defaults to 'status'. These values are supported:

  • 'status'.
  • 'warning'.
  • 'error'.

Return value

array The render array with webform inline message appended.

1 method overrides WebformMessageManagerInterface::append()
WebformMessageManager::append in src/WebformMessageManager.php
Append inline message message to a render array.

File

src/WebformMessageManagerInterface.php, line 226

Class

WebformMessageManagerInterface
Provides an interface for managing a webform's custom, default, and hard-coded messages.

Namespace

Drupal\webform

Code

public function append(array $build, $key, $type = 'status');