Method | Description | |
---|---|---|
__construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Registry $registry, Magento\Framework\Data\FormFactory $formFactory, Magento\Config\Model\Config\Factory $configFactory, Magento\Config\Model\Config\Structure $configStructure, Magento\Config\Block\System\Config\Form\Fieldset\Factory $fieldsetFactory, Magento\Config\Block\System\Config\Form\Field\Factory $fieldFactory, array $data = [] ) | Form constructor. | |
canUseContainerValue ( integer $fieldValue ) : boolean | Check if can use website value | |
canUseDefaultValue ( integer $fieldValue ) : boolean | Check if can use default value | |
getConfigValue ( string $path ) : mixed | Get config value | |
getContainerCode ( ) : string | Retrieve container code | |
getScope ( ) : string | Retrieve current scope | |
getScopeCode ( ) : string | Get current scope code | |
getScopeLabel ( Magento\Config\Model\Config\Structure\Element\Field $field ) : string | Retrieve label for scope |
Method | Description | |
---|---|---|
_initElement ( Magento\Config\Model\Config\Structure\Element\Field $field, Magento\Framework\Data\Form\Element\Fieldset $fieldset, string $path, string $fieldPrefix = '', string $labelPrefix = '' ) | Init form element from config. | |
_initObjects ( ) | Initialize objects required to render config form |
public __construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Registry $registry, Magento\Framework\Data\FormFactory $formFactory, Magento\Config\Model\Config\Factory $configFactory, Magento\Config\Model\Config\Structure $configStructure, Magento\Config\Block\System\Config\Form\Fieldset\Factory $fieldsetFactory, Magento\Config\Block\System\Config\Form\Field\Factory $fieldFactory, array $data = [] ) | ||
$context | Magento\Backend\Block\Template\Context | Application Context |
$registry | Magento\Framework\Registry | Magento Registry |
$formFactory | Magento\Framework\Data\FormFactory | Form Factory |
$configFactory | Magento\Config\Model\Config\Factory | Configuration Factory |
$configStructure | Magento\Config\Model\Config\Structure | Configuration Structure |
$fieldsetFactory | Magento\Config\Block\System\Config\Form\Fieldset\Factory | Fieldset Factory |
$fieldFactory | Magento\Config\Block\System\Config\Form\Field\Factory | Field Factory |
$data | array | Object Data |
protected _initElement ( Magento\Config\Model\Config\Structure\Element\Field $field, Magento\Framework\Data\Form\Element\Fieldset $fieldset, string $path, string $fieldPrefix = '', string $labelPrefix = '' ) | ||
$field | Magento\Config\Model\Config\Structure\Element\Field | Form field. |
$fieldset | Magento\Framework\Data\Form\Element\Fieldset | Form fieldset. |
$path | string | Config path. |
$fieldPrefix | string | Field name prefix. |
$labelPrefix | string | Field label prefix. |
protected _initObjects ( ) |
public canUseContainerValue ( integer $fieldValue ) : boolean | ||
$fieldValue | integer | The field value |
return | boolean |
public canUseDefaultValue ( integer $fieldValue ) : boolean | ||
$fieldValue | integer | The field value |
return | boolean |
public getConfigValue ( string $path ) : mixed | ||
$path | string | The config value path |
return | mixed |
public getContainerCode ( ) : string | ||
return | string |
public getScopeLabel ( Magento\Config\Model\Config\Structure\Element\Field $field ) : string | ||
$field | Magento\Config\Model\Config\Structure\Element\Field | The field |
return | string |