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

Commit 98cc752

Browse files
sanganinamratagelanivishal
authored andcommitted
Fixed set template syntax in block file #2
1 parent ce5eacd commit 98cc752

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

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/Iframe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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/Review/Block/Form.php

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

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

145145
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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/Tax/Plugin/Checkout/CustomerData/Cart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function afterGetSectionData(\Magento\Checkout\CustomerData\Cart $subject
6666
foreach ($result['items'] as $key => $itemAsArray) {
6767
if ($item = $this->findItemById($itemAsArray['item_id'], $items)) {
6868
$this->itemPriceRenderer->setItem($item);
69-
$this->itemPriceRenderer->setTemplate('checkout/cart/item/price/sidebar.phtml');
69+
$this->itemPriceRenderer->setTemplate('Magento_Tax::checkout/cart/item/price/sidebar.phtml');
7070
$result['items'][$key]['product_price']=$this->itemPriceRenderer->toHtml();
7171
}
7272
}

app/code/Magento/UrlRewrite/Block/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(
6565
*/
6666
protected function _prepareLayout()
6767
{
68-
$this->setTemplate('edit.phtml');
68+
$this->setTemplate('Magento_UrlRewrite::edit.phtml');
6969

7070
$this->_addBackButton();
7171
$this->_prepareLayoutFeatures();

app/code/Magento/User/Block/Role/Tab/Users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function _construct()
4545
$roleId = $this->getRequest()->getParam('rid', false);
4646
/** @var \Magento\User\Model\ResourceModel\User\Collection $users */
4747
$users = $this->_userCollectionFactory->create()->load();
48-
$this->setTemplate('role/users.phtml')->assign('users', $users->getItems())->assign('roleId', $roleId);
48+
$this->setTemplate('Magento_User::role/users.phtml')->assign('users', $users->getItems())->assign('roleId', $roleId);
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)