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);
    }
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);
    }
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 ) ; }
Deletes product filter from category

@param integer $id
@return mixed
Deletes product filter from category