You are here

public function WebformHelpManagerInterface::addNotification in Webform 8.5

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

Sets a notification to be displayed to webform administrators.

@internal Currently being used to display notifications related to updates.

Parameters

string $id: The notification id.

string|\Drupal\Component\Render\MarkupInterface|array $message: The notification to be displayed to webform administrators.

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

1 method overrides WebformHelpManagerInterface::addNotification()
WebformHelpManager::addNotification in src/WebformHelpManager.php
Sets a notification to be displayed to webform administrators.

File

src/WebformHelpManagerInterface.php, line 70

Class

WebformHelpManagerInterface
Defines an interface for help classes.

Namespace

Drupal\webform

Code

public function addNotification($id, $message, $type = 'status');