ইন 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 - ?