에서 theme
표 A가 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 - ?