Elgg\Database\Plugins::getSetting PHP Method

getSetting() public method

Get setting for a plugin.
See also: ElggPlugin::getSetting()
public getSetting ( string $name, string $plugin_id, mixed $default = null ) : mixed
$name string The name of the setting.
$plugin_id string The plugin ID (Required)
$default mixed The default value to return if none is set
return mixed
    function getSetting($name, $plugin_id, $default = null)
    {
        $plugin = $this->get($plugin_id);
        if (!$plugin) {
            return false;
        }
        return $plugin->getSetting($name, $default);
    }