Skip to content

Commit 3c26454

Browse files
authored
ENGCOM-4402: Remove setting of page title from Form/Register block and add title to customer_account_create layout #21503
2 parents ed49595 + 2ab2212 commit 3c26454

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/code/Magento/Customer/Block/Form/Register.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,6 @@ public function getConfig($path)
8686
return $this->_scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
8787
}
8888

89-
/**
90-
* Prepare layout
91-
*
92-
* @return $this
93-
*/
94-
protected function _prepareLayout()
95-
{
96-
$this->pageConfig->getTitle()->set(__('Create New Customer Account'));
97-
return parent::_prepareLayout();
98-
}
99-
10089
/**
10190
* Retrieve form posting url
10291
*

app/code/Magento/Customer/view/frontend/layout/customer_account_create.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9+
<head>
10+
<title>Create New Customer Account</title>
11+
</head>
912
<body>
1013
<referenceBlock name="head.components">
1114
<block class="Magento\Framework\View\Element\Js\Components" name="customer_account_create_head_components" template="Magento_Customer::js/components.phtml"/>

0 commit comments

Comments
 (0)