private appendSliderDisplayRelatedFields ( Magento\Framework\Data\Form $form, Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front $subject ) : |
||
$form | Magento\Framework\Data\Form | The form |
$subject | Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front | The StoreFront tab |
return |
private function appendSliderDisplayRelatedFields($form, $subject)
{
$attribute = $this->getAttribute();
$isAttributeDecimal = $attribute->getBackendType() == 'decimal' || $attribute->getFrontendClass() == 'validate-number';
if ($isAttributeDecimal && $attribute->getFrontendInput() !== 'price') {
$displayFieldset = $this->createDisplayFieldset($form, $subject);
$this->addDisplayFields($displayFieldset);
}
return $this;
}