mirocow\eav\admin\controllers\TypeController::findModel PHP Method

findModel() protected method

If the model is not found, a 404 HTTP exception will be thrown.
protected findModel ( integer $id ) : EavAttributeType
$id integer
return mirocow\eav\models\EavAttributeType the loaded model
    protected function findModel($id)
    {
        if (($model = EavAttributeType::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }