Skip to content

Commit 2e67cb4

Browse files
committed
marked as api
1 parent 4c8b0f0 commit 2e67cb4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

app/code/Magento/PageBuilder/Block/Adminhtml/System/Config/SwitchAttributeType.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,23 @@
88

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

11+
use Magento\Backend\Block\Template\Context;
12+
use Magento\Config\Block\System\Config\Form\Field;
13+
use Magento\Framework\Phrase;
14+
1115
/**
1216
* Class SwitchAttributeType renders modal window to confirm changing attribute type
1317
*
18+
* @api
1419
*/
15-
class SwitchAttributeType extends \Magento\Config\Block\System\Config\Form\Field
20+
class SwitchAttributeType extends Field
1621
{
1722
/**
18-
* @param \Magento\Backend\Block\Template\Context $context
23+
* @param Context $context
1924
* @param array $data
2025
*/
2126
public function __construct(
22-
\Magento\Backend\Block\Template\Context $context,
27+
Context $context,
2328
array $data = []
2429
) {
2530
parent::__construct($context, $data);
@@ -38,9 +43,9 @@ public function getModalSelector() : string
3843
/**
3944
* Get text for the modal title heading when user switches to disable
4045
*
41-
* @return \Magento\Framework\Phrase
46+
* @return Phrase
4247
*/
43-
public function getModalTitleText() : \Magento\Framework\Phrase
48+
public function getModalTitleText() : Phrase
4449
{
4550
return __('Product data may be lost');
4651
}

0 commit comments

Comments
 (0)