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

Commit ff9c466

Browse files
committed
MAGETWO-87116: Small refactor of getFrontName #13299
- Merge Pull Request magento/magento2#13299 from akiojalehto/magento2:refactor - Merged commits: 1. c8bbc7a
2 parents 8e77e2f + c8bbc7a commit ff9c466

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/internal/Magento/Framework/View/Context.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,11 @@ public function getModuleName()
332332
}
333333

334334
/**
335-
* Retrieve the module name
336-
*
337-
* @return string
338-
*
339-
* @todo alias of getModuleName
335+
* @see getModuleName
340336
*/
341337
public function getFrontName()
342338
{
343-
return $this->getRequest()->getModuleName();
339+
return $this->getModuleName();
344340
}
345341

346342
/**

0 commit comments

Comments
 (0)