public function getBodyAttributes()
    {
        $attributes = [];
        
        $api = GoogleAPI::singleton();
        
        if ($key = $api->getAPIKey()) {
            $attributes['data-google-api-key'] = $key;
        }
        
        if ($lang = $api->getAPILanguage()) {
            $attributes['data-google-api-lang'] = $lang;
        }
        
        if ($api->isAnalyticsEnabled()) {
            $attributes['data-google-tracking-id'] = $api->getAnalyticsTrackingID();
        }
        
        return $attributes;
    }
public function getBodyAttributes()
    {
        $attributes = [];
        
        $api = GoogleAPI::singleton();
        
        if ($key = $api->getAPIKey()) {
            $attributes['data-google-api-key'] = $key;
        }
        
        if ($lang = $api->getAPILanguage()) {
            $attributes['data-google-api-lang'] = $lang;
        }
        
        if ($api->isAnalyticsEnabled()) {
            $attributes['data-google-tracking-id'] = $api->getAnalyticsTrackingID();
        }
        
        return $attributes;
    }
public function getBodyAttributes ( ) { $ attributes = [ ] ; $ api = GoogleAPI :: singleton ( ) ; if ( $ key = $ api -> getAPIKey ( ) ) { $ attributes [ 'data-google-api-key' ] = $ key ; } if ( $ lang = $ api -> getAPILanguage ( ) ) { $ attributes [ 'data-google-api-lang' ] = $ lang ; } if ( $ api -> isAnalyticsEnabled ( ) ) { $ attributes [ 'data-google-tracking-id' ] = $ api -> getAnalyticsTrackingID ( ) ; } return $ attributes ; }
Answers the HTML tag attributes for the body as an array.

@return array
Answers the HTML tag attributes for the body as an array .