Skip to content
PHP Ecosystem
Explore

Message

API reference › Locale URLs › exception › Message

enumyii2\extensions\localeurls\exception\Message
Backed bystring
Sourcesrc/exception/Message.php

Defines locale URL exception message templates.

Use Message::getMessage() to format the template with sprintf() arguments.

CaseValueDescription
LOCALE_URLS_REQUIRE_PRETTY_URL'Locale URL support requires enablePrettyUrl to be set to true.'Error when locale URLs are enabled while pretty URLs are disabled.
MethodDescriptionDefined by
getMessage()Returns the formatted message string for the error case.Message
public function getMessage(int|string ...$argument): string

Returns the formatted message string for the error case.

Parameters

ParameterTypeDescription
...$argumentint|stringValues to insert into the message template.

Returns

string: Formatted error message with interpolated arguments.