File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,7 @@ public function disableIfNeeded()
117117 {
118118 foreach ($ this ->elements as $ element )
119119 {
120- $ element ->setDisabled (true )
121- ->setIgnored (true );
120+ $ element ->disable ();
122121 }
123122 }
124123 }
Original file line number Diff line number Diff line change @@ -67,14 +67,22 @@ public static function prepareElementName($name)
6767 return $ result ;
6868 }
6969
70+ public function disable ($ bool = true )
71+ {
72+ $ this ->setDisabled ($ bool )
73+ ->setIgnored ($ bool );
74+
75+ return $ this ;
76+ }
77+
7078 public function setIgnored ($ isIgnored )
7179 {
7280 $ this ->isIgnored = $ isIgnored ;
7381
7482 return $ this ;
7583 }
7684
77- public function setDisabled ($ isDisabled = true )
85+ public function setDisabled ($ isDisabled )
7886 {
7987 $ this ->isDisabled = $ isDisabled ;
8088
You can’t perform that action at this time.
0 commit comments