0 follower

Final Class Yiisoft\Translator\Event\MissingTranslationEvent

InheritanceYiisoft\Translator\Event\MissingTranslationEvent

The event is thrown when translation is missing.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $category, string $language, string $message )
$category string

Category of the missing translation.

$language string

Language of the missing translation.

$message string

Message of the missing translation.

                public function __construct(private string $category, private string $language, private string $message)
{
}

            
getCategory() public method

public string getCategory ( )
return string

Category of the missing translation.

                public function getCategory(): string
{
    return $this->category;
}

            
getLanguage() public method

public string getLanguage ( )
return string

Language of the missing translation.

                public function getLanguage(): string
{
    return $this->language;
}

            
getMessage() public method

public string getMessage ( )
return string

Message of the missing translation.

                public function getMessage(): string
{
    return $this->message;
}