I am trying to get the current pages meta data in title.phtml
on Magento 2 so that I can have a sub title and slight description on the page.
But I cant find anything for how to retrieve this information, only how to set it.
I have tried things like:
$this->pageConfig->getTitle();
and
$this->getLayout()->getBlock('head')->getTitle();
and
$resultPage->getConfig()->getTitle()
But all without success. I know this is all quite new at the moment but can anyone tell me how to do this?