Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-theme
Model
Theme
Customization
File
CustomCss.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Theme\Model\Theme\Customization\File
;
11
12
class
CustomCss
extends
\Magento\Framework\View\Design\Theme\Customization\AbstractFile
13
{
17
const
TYPE
=
'custom_css'
;
18
19
const
CONTENT_TYPE
=
'css'
;
20
26
const
FILE_NAME
=
'custom.css'
;
27
31
const
SORT_ORDER
= 10;
32
36
public
function
getType
()
37
{
38
return
self::TYPE
;
39
}
40
44
public
function
getContentType
()
45
{
46
return
self::CONTENT_TYPE
;
47
}
48
52
protected
function
_prepareFileName
(\
Magento
\Framework\View\
Design
\
Theme
\
FileInterface
$file)
53
{
54
if
(!$file->getFileName()) {
55
$file->setFileName(self::FILE_NAME);
56
}
57
}
58
62
protected
function
_prepareSortOrder
(\
Magento
\Framework\View\
Design
\
Theme
\
FileInterface
$file)
63
{
64
$file->setData(
'sort_order'
, self::SORT_ORDER);
65
}
66
}
Magento\Theme\Model\Theme
Definition:
Theme.php:36
Magento\Theme\Model\Design
Definition:
Design.php:27
Magento\Framework\View\Design\Theme\FileInterface
Definition:
FileInterface.php:11
Magento\Theme\Model\Theme\Customization\File\CustomCss\SORT_ORDER
const SORT_ORDER
Definition:
CustomCss.php:31
Magento\Theme\Model\Theme\Customization\File\CustomCss\_prepareSortOrder
_prepareSortOrder(\Magento\Framework\View\Design\Theme\FileInterface $file)
Definition:
CustomCss.php:62
Magento\Theme\Model\Theme\Customization\File\CustomCss
Definition:
CustomCss.php:12
Magento\Theme\Model\Theme\Customization\File\CustomCss\TYPE
const TYPE
Definition:
CustomCss.php:17
Magento\Theme\Model\Theme\Customization\File\CustomCss\CONTENT_TYPE
const CONTENT_TYPE
Definition:
CustomCss.php:19
Magento\Theme\Model\Theme\Customization\File\CustomCss\getType
getType()
Definition:
CustomCss.php:36
Magento\Theme\Model\Theme\Customization\File\CustomCss\_prepareFileName
_prepareFileName(\Magento\Framework\View\Design\Theme\FileInterface $file)
Definition:
CustomCss.php:52
Magento
Magento\Theme\Model\Theme\Customization\File
Definition:
CustomCss.php:10
Magento\Theme\Model\Theme\Customization\File\CustomCss\FILE_NAME
const FILE_NAME
Definition:
CustomCss.php:26
Magento\Theme\Model\Theme\Customization\File\CustomCss\getContentType
getContentType()
Definition:
CustomCss.php:44