M1\Vars\Loader\XmlLoader::load PHP Method

load() public method

public load ( )
    public function load()
    {
        libxml_use_internal_errors(true);
        $content = simplexml_load_file($this->entity);
        if (!$content) {
            throw new \RuntimeException(sprintf("'%s' failed to load with the error '%s'", $this->entity, libxml_get_errors()[0]->message));
        }
        $this->content = json_decode(json_encode($content), true);
        return $this;
    }
XmlLoader