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