public function ReadonlymodeManager::getWarningMessage in Read only mode 2.0.x
Get the warning message.
Return value
string The message.
1 call to ReadonlymodeManager::getWarningMessage()
- ReadonlymodeManager::onRequest in src/
ReadonlymodeManager.php - Set the readonly mode message on every request.
File
- src/
ReadonlymodeManager.php, line 115
Class
- ReadonlymodeManager
- The manager class for the read only mode.
Namespace
Drupal\readonlymodeCode
public function getWarningMessage() : string {
return (string) $this->token
->replace($this->config
->get('messages.default'));
}