/** * Action for AJAX request * * @return void */ public function execute() { $viewIds = explode('.', $this->_request->getParam('data')); $bookmark = $this->bookmarkManagement->getByIdentifierNamespace(array_pop($viewIds), $this->_request->getParam('namespace')); if ($bookmark && $bookmark->getId()) { $this->bookmarkRepository->delete($bookmark); } }