Gdn_Plugin::getPluginFolder PHP Method

getPluginFolder() public method

Get the plugin's folder.
public getPluginFolder ( boolean $absolute = true ) : string
$absolute boolean Whether or not the folder should be absolute.
return string Returns the folder or an empty string if there is no addon associated with this object.
    public function getPluginFolder($absolute = true)
    {
        if ($this->addon === null) {
            return '';
        }
        $folder = $this->addon->path('', $absolute ? Addon::PATH_FULL : Addon::PATH_ADDON);
        return $folder;
    }