JBZoo\SimpleTypes\Type\Type::_getConfig PHP Method

_getConfig() protected method

protected _getConfig ( Config $config = null ) : Config
$config JBZoo\SimpleTypes\Config\Config
return JBZoo\SimpleTypes\Config\Config
    protected function _getConfig(Config $config = null)
    {
        $defaultConfig = Config::getDefault($this->_type);
        $config = $config ? $config : $defaultConfig;
        // Hack for getValidValue method
        if (!$defaultConfig && $config) {
            Config::registerDefault($this->_type, $config);
        }
        return $config;
    }