ในtheme
ตารางมีtype
ฟิลด์ที่มีค่าที่เป็นไปได้ 3 ค่าคือฟิสิคัลฟิสิคัลและการจัดเตรียม
เมื่อใดที่จะใช้ชุดรูปแบบเสมือนจริงและการจัดเตรียม?
เมื่อฉันขยายชุดรูปแบบ luma ชุดรูปแบบใหม่ของฉันปรากฏในตารางชุดรูปแบบเสมือน แต่ดูเหมือนว่าประเภทนี้ไม่อนุญาตให้แทนที่ไฟล์บางไฟล์และเพียงเปลี่ยนประเภทของธีมจากเสมือนเป็นฟิสิคัลเป็นฟิสิคัลให้ฉันขยายตัวอย่างMagento_Theme
แพ็คเกจ
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 - ?