Gdn_Plugin::getPluginKey PHP Method

getPluginKey() public method

Get a specific value from the plugin info array.
public getPluginKey ( string $key, mixed $default = null ) : mixed
$key string Name of the key whose value you wish to retrieve.
$default mixed Optional value to return if the key cannot be found.
return mixed value of the provided key or {@link $default} if it isn't found.
    public function getPluginKey($key, $default = null)
    {
        if ($this->addon !== null) {
            return $this->addon->getInfoValue($key, $default);
        }
        return $default;
    }