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
7 
8 class Logo extends Image
9 {
14  const UPLOAD_DIR = 'logo';
15 
22  protected function _getUploadDir()
23  {
24  return $this->_mediaDirectory->getRelativePath($this->_appendScopeInfo(static::UPLOAD_DIR));
25  }
26 
32  protected function _addWhetherScopeInfo()
33  {
34  return true;
35  }
36 
42  public function getAllowedExtensions()
43  {
44  return ['jpg', 'jpeg', 'gif', 'png'];
45  }
46 }