public function YamlFormMessageManagerInterface::log in YAML Form 8
Log message.
Parameters
string $key: The name of form settings message to be logged.
string $type: (optional) The message's type. Defaults to 'warning'. These values are supported:
- 'notice'.
- 'warning'.
- 'error'.
1 method overrides YamlFormMessageManagerInterface::log()
- YamlFormMessageManager::log in src/
YamlFormMessageManager.php - Log message.
File
- src/
YamlFormMessageManagerInterface.php, line 183
Class
- YamlFormMessageManagerInterface
- Provides an interface for managing a form's custom, default, and hard-coded messages.
Namespace
Drupal\yamlformCode
public function log($key, $type = 'warning');