Skip to content

Commit d3183b1

Browse files
committed
render hidden _method field in form_rest()
1 parent 5e72d61 commit d3183b1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

FormView.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
5353
*/
5454
private $rendered = false;
5555

56+
private $methodRendered = false;
57+
5658
public function __construct(FormView $parent = null)
5759
{
5860
$this->parent = $parent;
@@ -90,6 +92,19 @@ public function setRendered()
9092
return $this;
9193
}
9294

95+
/**
96+
* @return bool
97+
*/
98+
public function isMethodRendered()
99+
{
100+
return $this->methodRendered;
101+
}
102+
103+
public function setMethodRendered()
104+
{
105+
$this->methodRendered = true;
106+
}
107+
93108
/**
94109
* Returns a child by name (implements \ArrayAccess).
95110
*

0 commit comments

Comments
 (0)