protected function getHtmlOfForm(Form $form, $index) { $myName = $this->name; $form->hookNames(function ($name) use($myName, $index) { return $myName . '[' . $index . '][' . $name . ']'; }); return (string) $form; }