/** * Retrieve label for scope * * @param Field $field The field * * @return 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]; }