You are here

public function YamlFormMessageManagerInterface::display in YAML Form 8

Display message.

Parameters

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

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

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

Return value

bool TRUE if message was displayed.

1 method overrides YamlFormMessageManagerInterface::display()
YamlFormMessageManager::display in src/YamlFormMessageManager.php
Display message.

File

src/YamlFormMessageManagerInterface.php, line 161

Class

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

Namespace

Drupal\yamlform

Code

public function display($key, $type = 'status');