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  private $_schema;
20 
24  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
25  {
26  $this->_schema = $moduleReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magento_Email') . '/email_templates.xsd';
27  }
28 
32  public function getSchema()
33  {
34  return $this->_schema;
35  }
36 
40  public function getPerFileSchema()
41  {
42  return $this->_schema;
43  }
44 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)