core/traits/RegistryTrait.php
public static function get($name, $defaultValue = null)
    {
        $model = self::find()->where([self::getNameAttribute() => $name])->asArray()->one();
    
        if ($model) {
            return $model[self::getValueAttribute()];
        }
    
        return $defaultValue;
    }
public static function get($name, $defaultValue = null)
    {
        $model = self::find()->where([self::getNameAttribute() => $name])->asArray()->one();
    
        if ($model) {
            return $model[self::getValueAttribute()];
        }
    
        return $defaultValue;
    }
public static function get ( $ name , $ defaultValue = null ) { $ model = self :: find ( ) -> where ( [ self :: getNameAttribute ( ) => $ name ] ) -> asArray ( ) -> one ( ) ; if ( $ model ) { return $ model [ self :: getValueAttribute ( ) ] ; } return $ defaultValue ; }
Get the value of a config value

@param string $name
@return string|null
Get the value of a config value