hookNames() public method

public hookNames ( Closure $hook )
$hook Closure
示例#1
0
 protected function getHtmlOfForm(Form $form, $index)
 {
     $myName = $this->name;
     $form->hookNames(function ($name) use($myName, $index) {
         return $myName . '[' . $index . '][' . $name . ']';
     });
     return (string) $form;
 }