コード例 #1
0
ファイル: Delete.php プロジェクト: pradeep-wagento/magento2
 /**
  * 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);
     }
 }