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 __construct( string $category, string $language, string $message ): mixed
$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 getCategory( ): string
return string

Category of the missing translation.

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

            
getLanguage() public method

public getLanguage( ): string
return string

Language of the missing translation.

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

            
getMessage() public method

public getMessage( ): string
return string

Message of the missing translation.

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