Skip to content

Commit

Permalink
Merge pull request #35 from ConvertGroupsAS/breacrumbs-settings-fix
Browse files Browse the repository at this point in the history
Replace label from "Stockists" to "Page Title"
  • Loading branch information
ClaudiuCreanga authored Mar 26, 2018
2 parents 35b36d7 + 4d152c8 commit 60a000a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public function execute()
{

$resultPage = $this->resultPageFactory->create();
$resultPage->getConfig()->getTitle()->set(
$this->scopeConfig->getValue(self::META_TITLE_CONFIG_PATH, ScopeInterface::SCOPE_STORE)
);
$pageTitle = $this->scopeConfig->getValue(self::META_TITLE_CONFIG_PATH, ScopeInterface::SCOPE_STORE);
$resultPage->getConfig()->getTitle()->set($pageTitle);
$resultPage->getConfig()->setDescription(
$this->scopeConfig->getValue(self::META_DESCRIPTION_CONFIG_PATH, ScopeInterface::SCOPE_STORE)
);
Expand All @@ -90,7 +89,7 @@ public function execute()
$breadcrumbsBlock->addCrumb(
'stockists',
[
'label' => __('Stockists'),
'label' => $pageTitle,
]
);
}
Expand Down

0 comments on commit 60a000a

Please sign in to comment.