kartik\social\GooglePlugin::setPluginOptions PHP Method

setPluginOptions() protected method

Sets the options for the Google plugin
protected setPluginOptions ( $convertLowerCase = true )
    protected function setPluginOptions($convertLowerCase = true)
    {
        parent::setPluginOptions();
        if ($this->type === self::SIGNIN && empty($this->options["data-clientid"])) {
            $this->options["data-clientid"] = $this->clientId;
        } elseif ($this->type === self::SHARE && empty($this->options["data-action"])) {
            $this->options["data-action"] = 'share';
        } elseif ($this->type === self::BADGE_PERSON && empty($this->options["data-href"])) {
            $this->options["data-href"] = "https://plus.google.com/{$this->profileId}";
        } elseif ($this->type === self::BADGE_COMMUNITY && empty($this->options["data-href"])) {
            $this->options["data-href"] = "https://plus.google.com/communities/{$this->communityId}";
        } elseif (($this->type === self::FOLLOW || $this->type === self::BADGE_PAGE) && empty($this->options["data-href"])) {
            $this->options["data-href"] = "https://plus.google.com/{$this->pageId}";
        } elseif ($this->type === self::HANGOUT && empty($this->options["data-render"])) {
            $this->options["data-render"] = 'createhangout';
        }
    }