public function removeIcon() { $request = $this->getRequest(); if (BackendToolbarItem::deleteMenuItem($request->get('id'), $request->get('position'))) { $this->fixSortOrder(); return new JSONResponse(null, 'success', $this->translate('_button_removed')); } else { return new JSONResponse(null, 'failure', $this->translate('_cant_remove_button')); } }