Skip to content

[#733 API Changes Mark Blocks as API #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@

namespace Magento\PageBuilder\Block\Adminhtml\System\Config;

use Magento\Backend\Block\Template\Context;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Phrase;

/**
* Class SwitchAttributeType renders modal window to confirm changing attribute type
*
* @api
*/
class SwitchAttributeType extends \Magento\Config\Block\System\Config\Form\Field
class SwitchAttributeType extends Field
{
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param Context $context
* @param array $data
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
Context $context,
array $data = []
) {
parent::__construct($context, $data);
Expand All @@ -38,9 +43,9 @@ public function getModalSelector() : string
/**
* Get text for the modal title heading when user switches to disable
*
* @return \Magento\Framework\Phrase
* @return Phrase
*/
public function getModalTitleText() : \Magento\Framework\Phrase
public function getModalTitleText() : Phrase
{
return __('Product data may be lost');
}
Expand Down