_url = $url; } /** * @var string */ protected $_widgetKey = 'search'; /** * Retrieve query * @return string */ public function getQuery() { return urldecode($this->getRequest()->getParam('q', '')); } /** * Retrieve serch form action url * @return string */ public function getFormUrl() { return $this->_url->getUrl('', \Magefan\Blog\Model\Url::CONTROLLER_SEARCH); } }