You are here

public function ReadonlymodeManager::getErrorMessage in Read only mode 2.0.x

Get the error message.

Return value

string The error message

File

src/ReadonlymodeManager.php, line 125

Class

ReadonlymodeManager
The manager class for the read only mode.

Namespace

Drupal\readonlymode

Code

public function getErrorMessage() : string {

  // We could take the entity as an argument and pass it on.
  return (string) $this->token
    ->replace($this->config
    ->get('messages.not_saved'));
}