Skip to content

Commit c12e421

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 8729f52 + 55fb79c commit c12e421

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/FormsPlugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __invoke(string $name = null)
7878
}
7979

8080
if ($result instanceof Form) {
81-
$this->restoreFormState($result);
81+
$this->restoreState($result);
8282
}
8383

8484
return $result;
@@ -87,7 +87,7 @@ public function __invoke(string $name = null)
8787
/**
8888
* @param Form $form
8989
*/
90-
public function restoreFormState(Form $form)
90+
public function restoreState(Form $form)
9191
{
9292
if ($this->flashMessenger) {
9393
$dataKey = $form->getName() . '_data';
@@ -104,7 +104,7 @@ public function restoreFormState(Form $form)
104104
/**
105105
* @param Form $form
106106
*/
107-
public function saveFormState(Form $form)
107+
public function saveState(Form $form)
108108
{
109109
if ($this->flashMessenger) {
110110
$dataKey = $form->getName() . '_data';
@@ -119,7 +119,7 @@ public function saveFormState(Form $form)
119119
* @param Form $form
120120
* @return array
121121
*/
122-
public function getFormMessages(Form $form): array
122+
public function getMessages(Form $form): array
123123
{
124124
$formMessages = $form->getMessages();
125125
return $this->processFormMessages($formMessages);
@@ -153,7 +153,7 @@ protected function processFormMessages(array $formMessages): array
153153
* @param Form $form
154154
* @return array
155155
*/
156-
public function getFormErrors(Form $form): array
156+
public function getErrors(Form $form): array
157157
{
158158
$formMessages = $form->getMessages();
159159
return $this->processFormErrors($formMessages);

0 commit comments

Comments
 (0)