Explorar o código

增加 Form::addVariables 方法

jqh %!s(int64=4) %!d(string=hai) anos
pai
achega
4321a4caca
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      src/Form.php

+ 12 - 0
src/Form.php

@@ -1369,6 +1369,18 @@ class Form implements Renderable
         return $this;
     }
 
+    /**
+     * @param array $vars
+     *
+     * @return $this
+     */
+    public function addVariables(array $vars)
+    {
+        $this->builder->addVariables($vars);
+
+        return $this;
+    }
+
     /**
      * Get or set title for form.
      *