Webiny\Component\Config\Bridge\Yaml\YamlInterface::getArray PHP Method

getArray() public method

Get Yaml value as array
public getArray ( ) : array
return array
    public function getArray();

Usage Example

Exemplo n.º 1
0
 /**
  * Get Yaml value as array
  *
  * @throws YamlException
  * @return array
  */
 public function getArray()
 {
     $res = $this->driverInstance->getArray();
     if (!$this->isArray($res) && !$this->isArrayObject($res)) {
         throw new YamlException('YamlInterface method getArray() must return an array or ArrayObject.');
     }
     return StdObjectWrapper::toArray($res);
 }