Helper/Data.php
public function getCustomAttributes($website = 0)
    {
        $attr = $this->scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_MAPPING_CUSTOM_DATAFIELDS,
            \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
            $website->getId()
        );

        if (!$attr) {
            return [];
        }

        return $this->serializer->unserialize($attr);
    }
public function getCustomAttributes($website = 0)
    {
        $attr = $this->scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_MAPPING_CUSTOM_DATAFIELDS,
            \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
            $website->getId()
        );

        if (!$attr) {
            return [];
        }

        return $this->serializer->unserialize($attr);
    }
public function getCustomAttributes ( $ website = 0 ) { $ attr = $ this -> scopeConfig -> getValue ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_MAPPING_CUSTOM_DATAFIELDS , \ Magento \ Store \ Model \ ScopeInterface :: SCOPE_WEBSITE , $ website -> getId ( ) ) ; if ( ! $ attr ) { return [ ] ; } return $ this -> serializer -> unserialize ( $ attr ) ; }
Get custom datafield mapped.

@param int $website

@return array|mixed
Get custom datafield mapped .