Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BackButton.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  public function getButtonData()
19  {
20  return [
21  'label' => __('Back'),
22  'on_click' => sprintf("location.href = '%s';", $this->getBackUrl()),
23  'class' => 'back',
24  'sort_order' => 10
25  ];
26  }
27 
33  public function getBackUrl()
34  {
35  return $this->getUrl('*/*/');
36  }
37 }
__()
Definition: __.php:13