From e2a58eb63befb4303cc6ef6e200230cba939639e Mon Sep 17 00:00:00 2001 From: Maximilian Fickers Date: Thu, 28 Feb 2019 13:00:28 +0100 Subject: [PATCH] Remove setting of page title from Form/Register block and add title to account customer_account_create layout --- app/code/Magento/Customer/Block/Form/Register.php | 11 ----------- .../view/frontend/layout/customer_account_create.xml | 3 +++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/app/code/Magento/Customer/Block/Form/Register.php b/app/code/Magento/Customer/Block/Form/Register.php index 322dd2cbfe915..59966768a2eda 100644 --- a/app/code/Magento/Customer/Block/Form/Register.php +++ b/app/code/Magento/Customer/Block/Form/Register.php @@ -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 * diff --git a/app/code/Magento/Customer/view/frontend/layout/customer_account_create.xml b/app/code/Magento/Customer/view/frontend/layout/customer_account_create.xml index fd5ecbfa7f277..0c5af453f2373 100644 --- a/app/code/Magento/Customer/view/frontend/layout/customer_account_create.xml +++ b/app/code/Magento/Customer/view/frontend/layout/customer_account_create.xml @@ -6,6 +6,9 @@ */ --> + + Create New Customer Account +