में theme
तालिका एक है type
शारीरिक, आभासी और मचान: 3 संभव मूल्यों के साथ क्षेत्र।
भौतिक आभासी और मंचन विषय का उपयोग कब करें?
जब मैंने लूमा थीम को बढ़ाया तो मेरा नया विषय थीम टेबल में आभासी प्रकार के रूप में दिखाई देने लगा। लेकिन ऐसा लगता है कि यह प्रकार कुछ फ़ाइलों को ओवरराइड करने की अनुमति नहीं देता है, और केवल वर्चुअल से भौतिक तक थीम प्रकार को बदलने देता है मुझे उदाहरण 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 - ?