Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SchemaLocator.php
Go to the documentation of this file.
1 <?php
9 
11 
13 {
19  protected $_schema;
20 
24  public function __construct(UrnResolver $urnResolver)
25  {
26  $this->_schema = $urnResolver->getRealPath('urn:magento:framework:View/PageLayout/etc/layouts.xsd');
27  }
28 
34  public function getSchema()
35  {
36  return $this->_schema;
37  }
38 
44  public function getPerFileSchema()
45  {
46  return $this->_schema;
47  }
48 }