public function config($key)
    {
        $splitKey = explode('.', $key);

        $moduleConfig = include __DIR__.'/../PublishedAssets/Config/'.$splitKey[0].'.php';

        $strippedKey = preg_replace('/'.$splitKey[1].'./', '', preg_replace('/'.$splitKey[0].'./', '', $key, 1), 1);

        return $moduleConfig[$strippedKey];
    }
public function config($key)
    {
        $splitKey = explode('.', $key);

        $moduleConfig = include __DIR__.'/../PublishedAssets/Config/'.$splitKey[0].'.php';

        $strippedKey = preg_replace('/'.$splitKey[1].'./', '', preg_replace('/'.$splitKey[0].'./', '', $key, 1), 1);

        return $moduleConfig[$strippedKey];
    }
public function config ( $ key ) { $ splitKey = explode ( '.' , $ key ) ; $ moduleConfig = include __DIR__ . '/../PublishedAssets/Config/' . $ splitKey [ 0 ] . '.php' ; $ strippedKey = preg_replace ( '/' . $ splitKey [ 1 ] . './' , '' , preg_replace ( '/' . $ splitKey [ 0 ] . './' , '' , $ key , 1 ) , 1 ) ; return $ moduleConfig [ $ strippedKey ] ; }
Get Module Config.

@param string $key Config key

@return mixed
Get Module Config .