Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StaticFile.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 
41  public function getFile($area, ThemeInterface $themeModel, $locale, $file, $module = null)
42  {
43  return $this->resolver->resolve($this->getFallbackType(), $file, $area, $themeModel, $locale, $module);
44  }
45 
49  protected function getFallbackType()
50  {
51  return \Magento\Framework\View\Design\Fallback\RulePool::TYPE_STATIC_FILE;
52  }
53 }
getFile($area, ThemeInterface $themeModel, $locale, $file, $module=null)
Definition: StaticFile.php:41