Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 86b9895

Browse files
Fixed set template syntax in block file #2
1 parent efd58e3 commit 86b9895

File tree

76 files changed

+80
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+80
-81
lines changed

app/code/Magento/Newsletter/Block/Adminhtml/Problem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Problem extends \Magento\Backend\Block\Template
1919
/**
2020
* @var string
2121
*/
22-
protected $_template = 'problem/list.phtml';
22+
protected $_template = 'Magento_Newsletter::problem/list.phtml';
2323

2424
/**
2525
* @var \Magento\Newsletter\Model\ResourceModel\Problem\Collection

app/code/Magento/Newsletter/Block/Adminhtml/Queue/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Edit extends \Magento\Backend\Block\Template
1919
/**
2020
* @var string
2121
*/
22-
protected $_template = 'queue/edit.phtml';
22+
protected $_template = 'Magento_Newsletter::queue/edit.phtml';
2323

2424
/**
2525
* Core registry

app/code/Magento/Newsletter/Block/Adminhtml/Subscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Subscriber extends \Magento\Backend\Block\Template
2929
/**
3030
* @var string
3131
*/
32-
protected $_template = 'subscriber/list.phtml';
32+
protected $_template = 'Magento_Newsletter::subscriber/list.phtml';
3333

3434
/**
3535
* @var \Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory

app/code/Magento/Newsletter/Block/Adminhtml/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Template extends \Magento\Backend\Block\Template
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'template/list.phtml';
19+
protected $_template = 'Magento_Newsletter::template/list.phtml';
2020

2121
/**
2222
* @return $this

app/code/Magento/OfflinePayments/Block/Form/Banktransfer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Banktransfer extends \Magento\OfflinePayments\Block\Form\AbstractInstructi
1515
*
1616
* @var string
1717
*/
18-
protected $_template = 'form/banktransfer.phtml';
18+
protected $_template = 'Magento_OfflinePayments::form/banktransfer.phtml';
1919
}

app/code/Magento/OfflinePayments/Block/Form/Cashondelivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Cashondelivery extends \Magento\OfflinePayments\Block\Form\AbstractInstruc
1515
*
1616
* @var string
1717
*/
18-
protected $_template = 'form/cashondelivery.phtml';
18+
protected $_template = 'Magento_OfflinePayments::form/cashondelivery.phtml';
1919
}

app/code/Magento/Payment/Block/Info/Instructions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Instructions extends \Magento\Payment\Block\Info
2323
/**
2424
* @var string
2525
*/
26-
protected $_template = 'info/instructions.phtml';
26+
protected $_template = 'Magento_Payment::info/instructions.phtml';
2727

2828
/**
2929
* Get instructions text from order payment

app/code/Magento/Paypal/Block/Adminhtml/Billing/Agreement/View/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ class Form extends \Magento\Backend\Block\Template
1313
/**
1414
* @var string
1515
*/
16-
protected $_template = 'billing/agreement/view/form.phtml';
16+
protected $_template = 'Magento_Paypal::billing/agreement/view/form.phtml';
1717
}

app/code/Magento/Paypal/Block/Adminhtml/Billing/Agreement/View/Tab/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Info extends \Magento\Backend\Block\Template implements \Magento\Backend\B
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'billing/agreement/view/tab/info.phtml';
18+
protected $_template = 'Magento_Paypal::billing/agreement/view/tab/info.phtml';
1919

2020
/**
2121
* Core registry

app/code/Magento/Paypal/Block/Adminhtml/System/Config/ApiWizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ApiWizard extends \Magento\Config\Block\System\Config\Form\Field
1313
/**
1414
* Path to block template
1515
*/
16-
const WIZARD_TEMPLATE = 'system/config/api_wizard.phtml';
16+
const WIZARD_TEMPLATE = 'Magento_Paypal::system/config/api_wizard.phtml';
1717

1818
/**
1919
* Set template to itself

app/code/Magento/Paypal/Block/Adminhtml/System/Config/BmlApiWizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BmlApiWizard extends ApiWizard
1111
/**
1212
* Path to block template
1313
*/
14-
const WIZARD_TEMPLATE = 'system/config/bml_api_wizard.phtml';
14+
const WIZARD_TEMPLATE = 'Magento_Paypal::system/config/bml_api_wizard.phtml';
1515

1616
/**
1717
* Get the button and scripts contents

app/code/Magento/Paypal/Block/Adminhtml/System/Config/Payflowlink/Advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ class Advanced extends \Magento\Paypal\Block\Adminhtml\System\Config\Payflowlink
1616
*
1717
* @var string
1818
*/
19-
protected $_template = 'system/config/payflowlink/advanced.phtml';
19+
protected $_template = 'Magento_Paypal::system/config/payflowlink/advanced.phtml';
2020
}

app/code/Magento/Paypal/Block/Adminhtml/System/Config/Payflowlink/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Info extends \Magento\Config\Block\System\Config\Form\Field
1616
*
1717
* @var string
1818
*/
19-
protected $_template = 'system/config/payflowlink/info.phtml';
19+
protected $_template = 'Magento_Paypal::system/config/payflowlink/info.phtml';
2020

2121
/**
2222
* Render fieldset html

app/code/Magento/Paypal/Block/Hosted/Pro/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Form extends \Magento\Payment\Block\Form
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'hss/info.phtml';
18+
protected $_template = 'Magento_Paypal::hss/info.phtml';
1919
}

app/code/Magento/Paypal/Block/Iframe.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Iframe extends \Magento\Payment\Block\Form
4444
/**
4545
* @var string
4646
*/
47-
protected $_template = 'hss/js.phtml';
47+
protected $_template = 'Magento_Paypal::hss/js.phtml';
4848

4949
/**
5050
* @var \Magento\Sales\Model\OrderFactory
@@ -116,7 +116,7 @@ protected function _construct()
116116
if ($file && $directory->isExist($directory->getRelativePath($file))) {
117117
$this->setTemplate($templateFile);
118118
} else {
119-
$this->setTemplate('hss/iframe.phtml');
119+
$this->setTemplate('Magento_Paypal::hss/iframe.phtml');
120120
}
121121
}
122122
}
@@ -198,7 +198,7 @@ protected function _beforeToHtml()
198198
protected function _toHtml()
199199
{
200200
if ($this->_isAfterPaymentSave()) {
201-
$this->setTemplate('hss/js.phtml');
201+
$this->setTemplate('Magento_Paypal::hss/js.phtml');
202202
return parent::_toHtml();
203203
}
204204
if (!$this->_shouldRender) {

app/code/Magento/Paypal/Block/Payflow/Advanced/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Form extends \Magento\Paypal\Block\Payflow\Link\Form
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'payflowadvanced/info.phtml';
18+
protected $_template = 'Magento_Paypal::payflowadvanced/info.phtml';
1919

2020
/**
2121
* Get frame action URL

app/code/Magento/Paypal/Block/Payflow/Link/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Form extends \Magento\Payment\Block\Form
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'payflowlink/info.phtml';
18+
protected $_template = 'Magento_Paypal::payflowlink/info.phtml';
1919

2020
/**
2121
* Get frame action URL

app/code/Magento/ProductAlert/Block/Email/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Price extends \Magento\ProductAlert\Block\Email\AbstractEmail
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'email/price.phtml';
18+
protected $_template = 'Magento_ProductAlert::email/price.phtml';
1919

2020
/**
2121
* Retrieve unsubscribe url for product

app/code/Magento/ProductAlert/Block/Email/Stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Stock extends \Magento\ProductAlert\Block\Email\AbstractEmail
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'email/stock.phtml';
18+
protected $_template = 'Magento_ProductAlert::email/stock.phtml';
1919

2020
/**
2121
* Retrieve unsubscribe url for product

app/code/Magento/Reports/Block/Adminhtml/Product/Viewed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Viewed extends \Magento\Backend\Block\Widget\Grid\Container
1717
/**
1818
* @var string
1919
*/
20-
protected $_template = 'report/grid/container.phtml';
20+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2121

2222
/**
2323
* @return void

app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Bestsellers extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Coupons extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Invoiced extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Refunded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Refunded extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Sales.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Sales extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Shipping extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Sales/Tax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Tax extends \Magento\Backend\Block\Widget\Grid\Container
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'report/grid/container.phtml';
22+
protected $_template = 'Magento_Reports::report/grid/container.phtml';
2323

2424
/**
2525
* {@inheritdoc}

app/code/Magento/Reports/Block/Adminhtml/Wishlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Wishlist extends \Magento\Backend\Block\Template
1818
*
1919
* @var string
2020
*/
21-
protected $_template = 'report/wishlist.phtml';
21+
protected $_template = 'Magento_Reports::report/wishlist.phtml';
2222

2323
/**
2424
* Reports wishlist collection factory

app/code/Magento/Review/Block/Adminhtml/Rating/Edit/Tab/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
1717
/**
1818
* @var string
1919
*/
20-
protected $_template = 'rating/form.phtml';
20+
protected $_template = 'Magento_Review::rating/form.phtml';
2121

2222
/**
2323
* Session

app/code/Magento/Review/Block/Adminhtml/Rss/Grid/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Link extends \Magento\Framework\View\Element\Template
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'rss/grid/link.phtml';
19+
protected $_template = 'Magento_Review::rss/grid/link.phtml';
2020

2121
/**
2222
* @var \Magento\Framework\App\Rss\UrlBuilderInterface

app/code/Magento/Review/Block/Customer/Recent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Recent extends \Magento\Framework\View\Element\Template
2020
*
2121
* @var string
2222
*/
23-
protected $_template = 'customer/list.phtml';
23+
protected $_template = 'Magento_Review::customer/list.phtml';
2424

2525
/**
2626
* Product reviews collection

app/code/Magento/Review/Block/Customer/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class View extends \Magento\Catalog\Block\Product\AbstractProduct
2323
*
2424
* @var string
2525
*/
26-
protected $_template = 'customer/view.phtml';
26+
protected $_template = 'Magento_Review::customer/view.phtml';
2727

2828
/**
2929
* Catalog product model

app/code/Magento/Review/Block/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function _construct()
138138
);
139139
}
140140

141-
$this->setTemplate('form.phtml');
141+
$this->setTemplate('Magento_Review::form.phtml');
142142
}
143143

144144
/**

app/code/Magento/Review/Block/Rating/Entity/Detailed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Detailed extends \Magento\Framework\View\Element\Template
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'detailed.phtml';
18+
protected $_template = 'Magento_Review::detailed.phtml';
1919

2020
/**
2121
* @var \Magento\Review\Model\RatingFactory
@@ -49,7 +49,7 @@ protected function _toHtml()
4949
$reviewsCount = $this->_ratingFactory->create()->getTotalReviews($entityId, true);
5050
if ($reviewsCount == 0) {
5151
#return __('Be the first to review this product');
52-
$this->setTemplate('empty.phtml');
52+
$this->setTemplate('Magento_Review::empty.phtml');
5353
return parent::_toHtml();
5454
}
5555

app/code/Magento/Review/Block/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class View extends \Magento\Catalog\Block\Product\AbstractProduct
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'view.phtml';
22+
protected $_template = 'Magento_Review::view.phtml';
2323

2424
/**
2525
* Rating option model

app/code/Magento/Rss/Block/Feeds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Feeds extends \Magento\Framework\View\Element\Template
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'feeds.phtml';
19+
protected $_template = 'Magento_Rss::feeds.phtml';
2020

2121
/**
2222
* @var \Magento\Framework\App\Rss\RssManagerInterface

app/code/Magento/Sales/Block/Adminhtml/Order/Address/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Form extends \Magento\Sales\Block\Adminhtml\Order\Create\Form\Address
1919
*
2020
* @var string
2121
*/
22-
protected $_template = 'order/address/form.phtml';
22+
protected $_template = 'Magento_Sales::order/address/form.phtml';
2323

2424
/**
2525
* Core registry

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals/Discount.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
*/
1616
class Discount extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTotals
1717
{
18-
//protected $_template = 'tax/checkout/subtotal.phtml';
19-
20-
//protected $_template = 'tax/checkout/subtotal.phtml';
18+
//protected $_template = 'Magento_Sales::tax/checkout/subtota
19+
//protected $_template = 'Magento_Sales::tax/checkout/subtotal.phtml';
2120
protected $_taxConfig;
2221

2322
/**

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals/Grandtotal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Grandtotal extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals\Defa
2020
*
2121
* @var string
2222
*/
23-
protected $_template = 'order/create/totals/grandtotal.phtml';
23+
protected $_template = 'Magento_Sales::order/create/totals/grandtotal.phtml';
2424

2525
/**
2626
* Tax config

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals/Shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Shipping extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals\Defaul
2020
*
2121
* @var string
2222
*/
23-
protected $_template = 'order/create/totals/shipping.phtml';
23+
protected $_template = 'Magento_Sales::order/create/totals/shipping.phtml';
2424

2525
/**
2626
* Tax config

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals/Subtotal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Subtotal extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals\Defaul
2020
*
2121
* @var string
2222
*/
23-
protected $_template = 'order/create/totals/subtotal.phtml';
23+
protected $_template = 'Magento_Sales::order/create/totals/subtotal.phtml';
2424

2525
/**
2626
* Tax config

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals/Tax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ class Tax extends \Magento\Sales\Block\Adminhtml\Order\Create\Totals\DefaultTota
1818
*
1919
* @var string
2020
*/
21-
protected $_template = 'order/create/totals/tax.phtml';
21+
protected $_template = 'Magento_Sales::order/create/totals/tax.phtml';
2222
}

0 commit comments

Comments
 (0)