code: public function getFormSegment($primaryModel = null, $settings = [])
      {
          if (empty($primaryModel)) {
              return false;
          }
  
          return $primaryModel->form($settings);
      }
docs: Get form segment.
  
  @param [[@doctodo param_type:primaryModel]] $primaryModel [[@doctodo param_description:primaryModel]] [optional]
  @param array                                $settings     [[@doctodo param_description:settings]] [optional]
  
  @return [[@doctodo return_type:getFormSegment]] [[@doctodo return_description:getFormSegment]]