public function actionDeleteFilter(int $id)
    {
        $filter = Filter::findOne($id);
        $filter->delete();
        $this->trigger(self::EVENT_AFTER_EDIT_CATEGORY,
            new CategoryEvent(['id' => $filter->category_id]));
        return $this->redirect(Yii::$app->request->referrer);
    }