Quittio next API

Messages
in package

FinalYes

Creates validation messages from the message catalog.

The catalog key is "{namespace}::rules.{code}" with the entries "message" and "hint". If no translation exists, the fallback text given by the rule is used.

Table of Contents

Methods

make()  : ValidationMessage

Methods

make()

public static make(ValidationContext $context, Severity $severity, string $code, ValidationLevel $level, string $fallback[, array<string, string|int> $replace = [] ][, string|null $bt = null ][, string|null $path = null ][, string $namespace = 'quittio' ]) : ValidationMessage
Parameters
$context : ValidationContext
$severity : Severity
$code : string
$level : ValidationLevel
$fallback : string
$replace : array<string, string|int> = []
$bt : string|null = null
$path : string|null = null
$namespace : string = 'quittio'
Return values
ValidationMessage
On this page

Search results