Logo.php 672 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Email\Model\Design\Backend;
  7. use Magento\Theme\Model\Design\Backend\Logo as DesignLogo;
  8. class Logo extends DesignLogo
  9. {
  10. /**
  11. * The tail part of directory path for uploading
  12. */
  13. const UPLOAD_DIR = 'email/logo';
  14. /**
  15. * Upload max file size in kilobytes
  16. *
  17. * @var int
  18. */
  19. protected $maxFileSize = 2048;
  20. /**
  21. * Getter for allowed extensions of uploaded files
  22. *
  23. * @return string[]
  24. */
  25. public function getAllowedExtensions()
  26. {
  27. return ['jpg', 'jpeg', 'gif', 'png'];
  28. }
  29. }