init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace Stemcell\Customer\Block\Address;
|
||||
|
||||
use Magento\Framework\Api\AttributeInterface;
|
||||
|
||||
class Edit extends \Magento\Customer\Block\Address\Edit
|
||||
{
|
||||
public function getCustomAttributeValue(String $attributeCode) {
|
||||
|
||||
$attribute = $this->getAddress()->getCustomAttribute($attributeCode);
|
||||
|
||||
return $attribute instanceof AttributeInterface? $attribute->getValue():'';
|
||||
}
|
||||
|
||||
public function getRegionId()
|
||||
{
|
||||
return (int)$this->getAddress()->getRegionId();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user