ZF\Apigility\Admin\Model\ModuleModel::exportConfig PHP Method

exportConfig() public static method

Export the $config array in a human readable format
public static exportConfig ( array $config, integer $indent ) : string
$config array
$indent integer the initial indentation value
return string
    public static function exportConfig($config, $indent = 0)
    {
        if (empty(static::$valueGenerator)) {
            static::$valueGenerator = new ValueGenerator();
        }
        static::$valueGenerator->setValue($config);
        static::$valueGenerator->setType(static::$useShortArrayNotation ? ValueGenerator::TYPE_ARRAY_SHORT : ValueGenerator::TYPE_ARRAY_LONG);
        static::$valueGenerator->setArrayDepth($indent);
        return static::$valueGenerator;
    }