/** * @param string $action * * @return mixed * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException */ public function execute($action = '') { return $this->actionHelper->handleDeleteAction($action, function (array $items) { $result = $this->seoModel->delete($items); $this->seoCache->saveCache(); return $result; }); }
/** * Deletes the given URL alias * * @param string $path * * @return boolean */ public function deleteUriAlias($path) { $path .= $this->preparePath($path); $seo = $this->seoRepository->getOneByUri($path); return !empty($seo) && $this->seoModel->delete($seo['id']) !== false; }