Sfoglia il codice sorgente

增加 Form::addVariables 方法

jqh 4 anni fa
parent
commit
4321a4caca
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  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.
      *