Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ci #76

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions Controller/Adminhtml/Entity/MassDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\Result\Redirect;
use Magento\Framework\Controller\ResultFactory;
use Magento\Ui\Component\MassAction\Filter;
use Smile\CustomEntity\Model\ResourceModel\CustomEntity\CollectionFactory;
Expand All @@ -16,23 +17,9 @@
*/
class MassDelete extends Action implements HttpPostActionInterface
{
/**
* @var Filter
*/
protected $filter;
protected Filter $filter;
protected CollectionFactory $collectionFactory;

/**
* @var CollectionFactory
*/
protected $collectionFactory;

/**
* Constructor.
*
* @param Context $context
* @param Filter $filter
* @param CollectionFactory $collectionFactory
*/
public function __construct(
Context $context,
Filter $filter,
Expand All @@ -59,6 +46,7 @@ public function execute()
__('A total of %1 record(s) have been deleted.', $collectionSize)
);

/** @var Redirect $resultRedirect */
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);

return $resultRedirect->setPath('*/*/');
Expand Down
Loading