| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Ui/Component/Control/ |
| Current File : //var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Ui/Component/Control/PdfAction.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Ui\Component\Control;
use Magento\Ui\Component\Control\Action;
/**
* Class PdfAction
*/
class PdfAction extends Action
{
/**
* Prepare
*
* @return void
*/
public function prepare()
{
$config = $this->getConfiguration();
$context = $this->getContext();
$config['url'] = $context->getUrl(
$config['pdfAction'],
['order_id' => $context->getRequestParam('order_id')]
);
$this->setData('config', (array)$config);
parent::prepare();
}
}