Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Logo.php
Go to the documentation of this file.
1 <?php
11 
16 class Logo extends \Magento\Config\Model\Config\Backend\Image
17 {
22  const UPLOAD_DIR = 'logo';
23 
30  protected function _getUploadDir()
31  {
32  return $this->_mediaDirectory->getAbsolutePath($this->_appendScopeInfo(self::UPLOAD_DIR));
33  }
34 
40  protected function _addWhetherScopeInfo()
41  {
42  return true;
43  }
44 
50  protected function _getAllowedExtensions()
51  {
52  return ['jpg', 'jpeg', 'gif', 'png'];
53  }
54 }