You are here

protected function ConfigSelector::drupalSetMessage in Configuration selector 8

Wraps drupal_set_message().

Parameters

string|\Drupal\Component\Render\MarkupInterface $message: (optional) The translated message to be displayed to the user. For consistency with other messages, it should begin with a capital letter and end with a period.

string $type: (optional) The message's type. Defaults to 'status'.

bool $repeat: (optional) If this is FALSE and the message is already set, then the message won't be repeated. Defaults to FALSE.

See also

drupal_set_message()

2 calls to ConfigSelector::drupalSetMessage()
ConfigSelector::selectConfig in src/ConfigSelector.php
Selects configuration to enable and disable after installing a module.
ConfigSelector::selectConfigOnUninstall in src/ConfigSelector.php
Selects configuration to enable after uninstalling a module.

File

src/ConfigSelector.php, line 291

Class

ConfigSelector
Selects configuration to enable after a module install or uninstall.

Namespace

Drupal\config_selector

Code

protected function drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE) {
  drupal_set_message($message, $type, $repeat);
}