Helper/Data.php
public function getAddressBookIdsToShow($website)
    {
        $bookIds = $this->getWebsiteConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_ADDRESSBOOK_PREF_SHOW_BOOKS,
            $website
        );

        if (empty($bookIds)) {
            return [];
        }

        $additionalFromConfig = explode(',', $bookIds);
        //unset the default option - for multi select
        if ($additionalFromConfig[0] == '0') {
            unset($additionalFromConfig[0]);
        }

        return $additionalFromConfig;
    }
public function getAddressBookIdsToShow($website)
    {
        $bookIds = $this->getWebsiteConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_ADDRESSBOOK_PREF_SHOW_BOOKS,
            $website
        );

        if (empty($bookIds)) {
            return [];
        }

        $additionalFromConfig = explode(',', $bookIds);
        //unset the default option - for multi select
        if ($additionalFromConfig[0] == '0') {
            unset($additionalFromConfig[0]);
        }

        return $additionalFromConfig;
    }
public function getAddressBookIdsToShow ( $ website ) { $ bookIds = $ this -> getWebsiteConfig ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_ADDRESSBOOK_PREF_SHOW_BOOKS , $ website ) ; if ( empty ( $ bookIds ) ) { return [ ] ; } $ additionalFromConfig = explode ( ',' , $ bookIds ) ; //unset the default option - for multi select if ( $ additionalFromConfig [ 0 ] == '0' ) { unset ( $ additionalFromConfig [ 0 ] ) ; } return $ additionalFromConfig ; }
Address book ids to display

@param \Magento\Store\Model\Website $website
@return array
Address book ids to display