Smile\ElasticsuiteCore\Block\Adminhtml\Search\Request\RelevanceConfig\Form::getScopeLabel PHP Метод

getScopeLabel() публичный Метод

Retrieve label for scope
public getScopeLabel ( Magento\Config\Model\Config\Structure\Element\Field $field ) : string
$field Magento\Config\Model\Config\Structure\Element\Field The field
Результат string
    public function getScopeLabel(Field $field)
    {
        $showInStore = $field->showInStore();
        $showInContainer = $field->showInContainer();
        if ($showInStore == 1) {
            return $this->_scopeLabels[ContainerScopeInterface::SCOPE_STORE_CONTAINERS];
        } elseif ($showInContainer == 1) {
            return $this->_scopeLabels[ContainerScopeInterface::SCOPE_CONTAINERS];
        }
        return $this->_scopeLabels[ContainerScopeInterface::SCOPE_DEFAULT];
    }