Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Js.php
Go to the documentation of this file.
1 <?php
8 
12 
17 class Js extends Template
18 {
22  protected $config;
23 
27  private $fileManager;
28 
35  public function __construct(
36  Template\Context $context,
38  \Magento\Translation\Model\FileManager $fileManager,
39  array $data = []
40  ) {
41  parent::__construct($context, $data);
42  $this->config = $config;
43  $this->fileManager = $fileManager;
44  }
45 
51  public function dictionaryEnabled()
52  {
53  return $this->config->dictionaryEnabled();
54  }
55 
61  public function getTranslationFileTimestamp()
62  {
63  return $this->fileManager->getTranslationFileTimestamp();
64  }
65 
69  public function getTranslationFilePath()
70  {
71  return $this->fileManager->getTranslationFilePath();
72  }
73 
79  public function getTranslationFileVersion()
80  {
81  return $this->fileManager->getTranslationFileVersion();
82  }
83 }
__construct(Template\Context $context, Config $config, \Magento\Translation\Model\FileManager $fileManager, array $data=[])
Definition: Js.php:35