protected function preRemoveProductHook() { if ($_GET['action'] !== 'remove') { return false; } $id = (int) $_GET['id']; return $this->productService->removeProduct($id); }