Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LocaleFile.php
Go to the documentation of this file.
1 <?php
8 
10 
15 {
19  private $resolver;
20 
26  public function __construct(ResolverInterface $resolver)
27  {
28  $this->resolver = $resolver;
29  }
30 
40  public function getFile($area, ThemeInterface $themeModel, $locale, $file)
41  {
42  return $this->resolver->resolve($this->getFallbackType(), $file, $area, $themeModel, $locale, null);
43  }
44 
48  protected function getFallbackType()
49  {
50  return \Magento\Framework\View\Design\Fallback\RulePool::TYPE_LOCALE_FILE;
51  }
52 }
getFile($area, ThemeInterface $themeModel, $locale, $file)
Definition: LocaleFile.php:40