Craft\AmForms_FormsService::getFormById PHP Method

getFormById() public method

Get a form by its ID.
public getFormById ( integer $id ) : AmForms_FormModel | null
$id integer
return AmForms_FormModel | null
    public function getFormById($id)
    {
        return $this->getCriteria(array('limit' => 1, 'id' => $id))->first();
    }