Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EmailTemplateFile.php
Go to the documentation of this file.
1 <?php
8 
10 
15 {
19  protected $resolver;
20 
26  public function __construct(
27  \Magento\Framework\View\Design\FileResolution\Fallback\Resolver\Simple $resolver
28  ) {
29  $this->resolver = $resolver;
30  }
31 
42  public function getFile($area, ThemeInterface $themeModel, $locale, $file, $module = null)
43  {
44  return $this->resolver->resolve($this->getFallbackType(), $file, $area, $themeModel, $locale, $module);
45  }
46 
52  protected function getFallbackType()
53  {
54  return \Magento\Framework\View\Design\Fallback\RulePool::TYPE_EMAIL_TEMPLATE;
55  }
56 }
getFile($area, ThemeInterface $themeModel, $locale, $file, $module=null)
__construct(\Magento\Framework\View\Design\FileResolution\Fallback\Resolver\Simple $resolver)