df.tips
Which of the following will return the current page title in Magento?
Upwork
«Magento» Upwork test
dmitrii_fediuk
(Dmitrii Fediuk)
February 26, 2018, 12:55pm
1
$this->getLayout()->get(‘head’)->getTitle();
$this->getLayout()->getBlock(‘head’)->getPageTitle();
$this->getLayout()->get(‘Title’)->getHead();
$this->getLayout()->getBlock(‘head’)->getTitle();
stackoverflow.com/a/14950477
Magento