| Current Path : /home/rtorresani/www/vendor/magento/module-backend/Block/Widget/Grid/Column/Filter/ |
| Current File : //home/rtorresani/www/vendor/magento/module-backend/Block/Widget/Grid/Column/Filter/Massaction.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Backend\Block\Widget\Grid\Column\Filter;
/**
* Massaction grid column filter
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Massaction extends \Magento\Backend\Block\Widget\Grid\Column\Filter\Checkbox
{
/**
* {@inheritdoc}
*/
public function getCondition()
{
if ($this->getValue()) {
return ['in' => $this->getColumn()->getSelected() ? $this->getColumn()->getSelected() : [0]];
} else {
return ['nin' => $this->getColumn()->getSelected() ? $this->getColumn()->getSelected() : [0]];
}
}
}