52 AddressHelper $addressHelper,
61 $this->_isScopePrivate =
true;
72 $this->
setTemplate(
'Magento_Customer::widget/company.phtml');
94 return $this->_isAttributeVisible(self::ATTRIBUTE_CODE);
102 if ($this->getForceUseCustomerAttributes() || $this->getObject() instanceof
CustomerInterface) {
108 }
catch (\
Magento\Framework\Exception\NoSuchEntityException $e) {
112 if ($this->getForceUseCustomerRequiredAttributes() &&
$attribute && !
$attribute->isRequired()) {
114 if ($customerAttribute && $customerAttribute->isRequired()) {
144 return $this->_addressHelper->getAttributeValidationClass(
$attributeCode);
155 return $attributeMetadata ? (bool)$attributeMetadata->isVisible() :
false;
177 ->isRequired() :
false;