Craft\AmForms_FormsService::getFormByHandle PHP Method

getFormByHandle() public method

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