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 = null;
20 
26  protected $_perFileSchema = null;
27 
31  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
32  {
33  $etcDir = $moduleReader->getModuleDir(\Magento\Framework\Module\Dir::MODULE_ETC_DIR, 'Magento_Widget');
34  $this->_schema = $etcDir . '/widget.xsd';
35  $this->_perFileSchema = $etcDir . '/widget_file.xsd';
36  }
37 
43  public function getSchema()
44  {
45  return $this->_schema;
46  }
47 
53  public function getPerFileSchema()
54  {
55  return $this->_perFileSchema;
56  }
57 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)