Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Tax.php
Go to the documentation of this file.
1 <?php
8 
10 
16 abstract class Tax extends \Magento\Backend\App\Action
17 {
23  const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';
24 
29 
34 
40  public function __construct(
41  \Magento\Backend\App\Action\Context $context,
42  \Magento\Tax\Api\TaxClassRepositoryInterface $taxClassService,
43  \Magento\Tax\Api\Data\TaxClassInterfaceFactory $taxClassDataObjectFactory
44  ) {
45  $this->taxClassRepository = $taxClassService;
46  $this->taxClassDataObjectFactory = $taxClassDataObjectFactory;
47  parent::__construct($context);
48  }
49 
57  protected function _processClassName($className)
58  {
59  $className = trim($className);
60  if ($className == '') {
61  throw new InputException(__('Invalid name of tax class specified.'));
62  }
63  return $className;
64  }
65 }
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Tax\Api\TaxClassRepositoryInterface $taxClassService, \Magento\Tax\Api\Data\TaxClassInterfaceFactory $taxClassDataObjectFactory)
Definition: Tax.php:40
__()
Definition: __.php:13
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31