Gelen theme
masanın bir orada type
fiziksel, sanal ve evreleme: 3 olası değerlerle alanı.
Fiziksel sanal ve sahneleme teması ne zaman kullanılır?
Luma temasını genişlettiğimde yeni temam tema tablosunda sanal tip olarak görünüyor. Ancak bu tür, bazı dosyaların geçersiz kılınmasına izin vermiyor ve yalnızca tema türünü sanaldan fiziksel olarak değiştirmeme izin veriyor, örneğin Magento_Theme
paketini genişletmeme izin verin .
vendor\magento\module-theme\Model\Theme\Registration.php
/** Allowed sequence relation by type, array(parent theme, child theme) * @var array */ protected $_allowedRelations = [ [ThemeInterface::TYPE_PHYSICAL, ThemeInterface::TYPE_VIRTUAL], [ThemeInterface::TYPE_VIRTUAL, ThemeInterface::TYPE_STAGING],]; /** Forbidden sequence relation by type ** @var array*/ protected $_forbiddenRelations = [[ThemeInterface::TYPE_VIRTUAL, ThemeInterface::TYPE_VIRTUAL],[ThemeInterface::TYPE_PHYSICAL, ThemeInterface::TYPE_STAGING],];
0: Physical - Magento Default Theme (Example: Magento Blank, Magento Luma, Magento 2 Backend) 1: Virtual - Custom Theme which is created by you (custom) which has parent as Default Theme (Example: My Theme) 2: Staging - ?