예제 #1
0
 /**
  * @param ActiveField|SetItemInterface $item
  * @return ActiveForm|null
  * @throws \Exception
  */
 protected function getItemForm($item)
 {
     if ($item instanceof ActiveField) {
         return $item->form;
     } elseif ($item instanceof FieldSet) {
         return $item->getForm();
     }
     return null;
 }