- WIP on some pushMessage and createdAt/updatedAt handling
This commit is contained in:
1 parent
993c556d30
commit
382a4459d7
5 files changed
+68
-38
No files matched your search
@@ -26,25 +26,25 @@ class FormContext extends \Picea\Ui\Method\FormContext {
|
||||
return $this->languageHandler->languageFromKey($key, $variables);
|
||||
}
|
||||
|
||||
public function pushSuccessMessage($key, $variables = []) {
|
||||
public function pushSuccessMessage($key, $variables = []) : void {
|
||||
$this->pushMessage($this->message::generateSuccess(
|
||||
$this->lang($key, $variables)
|
||||
));
|
||||
}
|
||||
|
||||
public function pushWarningMessage($key, $variables = []) {
|
||||
public function pushWarningMessage($key, $variables = []) : void {
|
||||
$this->pushMessage($this->message::generateWarning(
|
||||
$this->lang($key, $variables)
|
||||
));
|
||||
}
|
||||
|
||||
public function pushErrorMessage($key, $variables = []) {
|
||||
public function pushErrorMessage($key, $variables = []) : void {
|
||||
$this->pushMessage($this->message::generateError(
|
||||
$a = $this->lang($key, $variables)
|
||||
));
|
||||
}
|
||||
|
||||
public function pushInfoMessage($key, $variables = []) {
|
||||
public function pushInfoMessage($key, $variables = []) : void {
|
||||
$this->pushMessage($this->message::generateInfo(
|
||||
$this->lang($key, $variables)
|
||||
));
|
||||
|
||||
Reference in new issue
Block a user