I have custom block
in my custom module, which call my frontend custom phtml
file.
let's say file path: app\code\Vendor\Module\Block\Index\Index.php
I need to figure out the way to set meta title
, meta keywords
and meta description
using Block
I already set the page title by using following code in Block
protected function _prepareLayout()
{
$this->pageConfig->getTitle()->set(__('My page title'));
return parent::_prepareLayout();
}
Any help, experience and knowledge sharing would be appreciated