/**
  * Constructor
  *
  * @param Context  $context
  * @param Registry $registry
  * @param          $registryIdKey
  * @param array    $buttonData
  */
 public function __construct(Context $context, Registry $registry, $registryIdKey, $buttonData = [])
 {
     $this->urlBuilder = $context->getUrlBuilder();
     $this->registry = $registry;
     $this->buttonData = $buttonData;
     $this->registryIdKey = $registryIdKey;
 }
Beispiel #2
0
 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Sales\Helper\Admin $adminHelper
  * @param \Magento\Sales\Api\OrderPaymentRepositoryInterface $orderPaymentRepository
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Admin $adminHelper, OrderPaymentRepositoryInterface $orderPaymentRepository, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->adminHelper = $adminHelper;
     $this->_urlBuilder = $context->getUrlBuilder();
     $this->orderPaymentRepository = $orderPaymentRepository;
 }
 /**
  * Generate url by route and parameters
  *
  * @param   string $route
  * @param   array $params
  * @return  string
  */
 public function getUrl($route = '', $params = [])
 {
     return $this->context->getUrlBuilder()->getUrl($route, $params);
 }
Beispiel #4
0
 /**
  * @param Context $context
  */
 public function __construct(Context $context)
 {
     $this->urlBuilder = $context->getUrlBuilder();
 }
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Framework\Registry $registry
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry)
 {
     $this->urlBuilder = $context->getUrlBuilder();
     $this->registry = $registry;
 }