Get setting's value.

@param string $handle
@param string $default

@return string
182218
public function value($handle = null, $default = '')
    {
        if ($handle && ! $this->get($handle)) {
            return $default;
        }

        if ($handle) {
            return $this->get($handle)->value ?: $this->defaultValue($handle);
        }

        return $this->setting->value ?: $this->setting->default;
    }
1246724
public function label($handle = null)
    {
        if ($handle) {
            return $this->get($handle)->label;
        }

        return $this->setting->label;
    }
957287
public function getRealHandler($handler)
    {
        if ($handler instanceof \Closure) {
            return $handler;
        }

        $default = \is_array($this->handler) ? $this->handler : static::$default;

        return $handler + $default;
    }
992983
public function get($key, $default = null, $save = false)
    {
        $this->load();

        if ($this->has($key)) {
            return Arr::get($this->settings, $key, $default);
        }

        if ($save) {
            $this->set($key, $default);
        }

        if ($this->config->has($key)) {
            return $this->config->get($key);
        }

        return $default;
    }
198489
public function get($property, $default = null)
    {
        $properties = $this->getValue('properties', []);
        if (array_key_exists($property, $properties)) {
            $value = $properties[$property];
            if (is_array($value)) {
                $value = reset($value);
            }

            return $value;
        }

        return $default;
    }
1131799
private function getDefaultValue($key, $default = null)
    {
        $value = null === $default && \array_key_exists($key, $this->defaults)
            ? $this->defaults[$key]
            : $default;

        return $this->getByManager($key, $value, $default);
    }
1079676
public static function get($key, $default = null)
    {
        static $env;
        if (null === $env) {
            new static;
            $env = true;
        }
        $value = getenv($key);
        
        if ($value === false) {
            return $default;
        }
        
        switch (strtolower($value)) {
            case 'true':
                return true;
            case 'false':
                return false;
            case 'null':
                return null;
        }
        
        return $value;
    }
863894
public function getSetting($name, $default = '')
    {

        if (array_key_exists($name, $this->settings)) {
            $value = $this->settings[$name];
        } else {
            $value = $default;
        }

        return $value;

    }
878399
public function getRule($handle)
    {
        $rules = $this->getRules();

        return isset($rules[$handle]) ? $rules[$handle] : null;
    }
41806
public function get($setting = null, $default = null) {
        $setting = trim($setting);
        if (empty($setting)) {
            return $this->store->dump();
        }

        $value = $this->store->get($setting, $default);
        return self::parse($value);
    }
767850
public function getValue() : ?string 
    {
        if ( ! $this->hasValue()) {
            $this->setValue($this->getDefaultValue());
        }
        return $this->value;
    }
793172
public static function getSessionValue($key, $default=null) {
		if(!isset($_SESSION)){
			session_start();
		}
		return (isset($_SESSION[$key]) ? $_SESSION[$key] : $default);
	}
753402
public function getConfigurationValue($key, $default = null)
    {
        if (is_array($this->configuration) && array_key_exists($key, $this->configuration)) {
            return $this->configuration[$key];
        }

        return $default;
    }
847358
public function getValueOrDefault($key, $default = null) {
        if (!empty($this->values[$key])) {
            return $this->values[$key];
        }
        elseif (!empty($this->defaults[$key])) {
            return $this->defaults[$key];
        }
        else {
            return $default;
        }
    }
1187451
public function getAndPut(string $key, $value, $default = null)
	{
		$storedValue = $this->get($key, $default);

		$this->put($key, $value);

		return $storedValue;
	}
1154443
public function getByHandle($handle)
    {
        $handle = (string) $handle;

        return $handle === '' ? null : $this->repo->findOneBy(['glHandle' => $handle]);
    }
452554
public function get($key, $default_value = null)
    {
        if (strpos($key, '.') !== false) {
            $setting = $this->getSubValue($key);
        } else {
            if ($this->hasByKey($key)) {
                $setting = $this->getByKey($key);
            } else {
                $setting = $default_value;
            }
        }
        $this->resetLang();

        if (is_null($setting)) {
            $setting = $default_value;
        }

        return $setting;
    }