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