Craft\SeomaticService::getSocial PHP Method

getSocial() public method

--------------------------------------------------------------------------------
public getSocial ( $locale )
    public function getSocial($locale)
    {
        /* -- Cache it in our class; no need to fetch it more than once */
        if (isset($this->cachedSocial[$locale])) {
            return $this->cachedSocial[$locale];
        }
        $settings = $this->getSettings($locale);
        $social = array();
        $social['locale'] = $settings['locale'];
        $social['twitterHandle'] = $settings['twitterHandle'];
        $social['facebookHandle'] = $settings['facebookHandle'];
        $social['facebookProfileId'] = $settings['facebookProfileId'];
        $social['facebookAppId'] = $settings['facebookAppId'];
        $social['linkedInHandle'] = $settings['linkedInHandle'];
        $social['googlePlusHandle'] = $settings['googlePlusHandle'];
        $social['youtubeHandle'] = $settings['youtubeHandle'];
        $social['youtubeChannelHandle'] = $settings['youtubeChannelHandle'];
        $social['instagramHandle'] = $settings['instagramHandle'];
        $social['pinterestHandle'] = $settings['pinterestHandle'];
        $social['githubHandle'] = $settings['githubHandle'];
        $social['vimeoHandle'] = $settings['vimeoHandle'];
        $result = $social;
        $this->cachedSocial[$locale] = $result;
        return $result;
    }