Skip to content

Commit

Permalink
ENGCOM-4402: Remove setting of page title from Form/Register block an…
Browse files Browse the repository at this point in the history
…d add title to customer_account_create layout #21503
  • Loading branch information
sidolov authored Mar 5, 2019
2 parents ed49595 + 2ab2212 commit 3c26454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/code/Magento/Customer/Block/Form/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,6 @@ public function getConfig($path)
return $this->_scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}

/**
* Prepare layout
*
* @return $this
*/
protected function _prepareLayout()
{
$this->pageConfig->getTitle()->set(__('Create New Customer Account'));
return parent::_prepareLayout();
}

/**
* Retrieve form posting url
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<title>Create New Customer Account</title>
</head>
<body>
<referenceBlock name="head.components">
<block class="Magento\Framework\View\Element\Js\Components" name="customer_account_create_head_components" template="Magento_Customer::js/components.phtml"/>
Expand Down

0 comments on commit 3c26454

Please sign in to comment.