コード例 #1
0
ファイル: save.php プロジェクト: icybee/module-nodes
 /**
  * Returns the form from the `edit` block if the getter wasn't able to retrieve the form. This
  * is currently used to create records using XHR.
  */
 protected function lazy_get_form()
 {
     $form = parent::lazy_get_form();
     if ($form) {
         return $form;
     }
     $block = $this->module->getBlock('edit', $this->key);
     return $block->element;
 }