Webiny\Component\Config\Drivers\AbstractDriver::getArray PHP Method

getArray() final public method

Get config data as array
final public getArray ( ) : array
return array Parsed resource data array
    public final function getArray()
    {
        $res = $this->getArrayInternal();
        if (!$this->isArray($res) && !$this->isArrayObject($res)) {
            $errorMessage = 'AbstractDriver method _getArray() must return array or ArrayObject.';
            $errorMessage .= ' Make sure you have provided a valid config file path with file extension.';
            throw new ConfigException($errorMessage);
        }
        return StdObjectWrapper::toArray($res);
    }