| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-checkout/Block/Cart/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-checkout/Block/Cart/CartTotalsProcessor.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Checkout\Block\Cart;
use Magento\Checkout\Model\Layout\AbstractTotalsProcessor;
use Magento\Checkout\Block\Checkout\LayoutProcessorInterface;
class CartTotalsProcessor extends AbstractTotalsProcessor implements LayoutProcessorInterface
{
/**
* {@inheritdoc}
*/
public function process($jsLayout)
{
$totals = $jsLayout['components']['block-totals']['children'];
$jsLayout['components']['block-totals']['children'] = $this->sortTotals($totals);
return $jsLayout;
}
}