MageConfigSync\ConfigYaml::toArray PHP Méthode

toArray() public méthode

public toArray ( boolean $forced_environment = false ) : array
$forced_environment boolean
Résultat array
    public function toArray($forced_environment = false)
    {
        if ($forced_environment) {
            $environment = $forced_environment;
        } else {
            if ($this->_environment) {
                $environment = $this->_environment;
            } else {
                $environment = false;
            }
        }
        if ($environment) {
            return array($environment => $this->getData());
        } else {
            return $this->getData();
        }
    }