mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
31 lines
660 B
PHP
31 lines
660 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
/**
|
|
* Newsletter subscribe block
|
|
*
|
|
* @author Magento Core Team <core@magentocommerce.com>
|
|
*/
|
|
namespace Magento\Newsletter\Block;
|
|
|
|
/**
|
|
* @api
|
|
* @since 100.0.2
|
|
*/
|
|
class Subscribe extends \Magento\Framework\View\Element\Template
|
|
{
|
|
/**
|
|
* Retrieve form action url and set "secure" param to avoid confirm
|
|
* message when we submit form from secure page to unsecure
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getFormActionUrl()
|
|
{
|
|
return $this->getUrl('newsletter/subscriber/new', ['_secure' => true]);
|
|
}
|
|
}
|