diff --git a/app/code/Magento/Catalog/Model/Resource/Category/Attribute/Source/Mode.php b/app/code/Magento/Catalog/Model/Resource/Category/Attribute/Source/Mode.php deleted file mode 100644 index 9136a84c65874..0000000000000 --- a/app/code/Magento/Catalog/Model/Resource/Category/Attribute/Source/Mode.php +++ /dev/null @@ -1,31 +0,0 @@ - - */ -class Mode extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource -{ - /** - * Returns all mode options - * - * @return array - */ - public function getAllOptions() - { - if (!$this->_options) { - $this->_options = [ - ['value' => \Magento\Catalog\Model\Category::DM_PRODUCT, 'label' => __('Products only')], - ['value' => \Magento\Catalog\Model\Category::DM_PAGE, 'label' => __('Static block only')], - ['value' => \Magento\Catalog\Model\Category::DM_MIXED, 'label' => __('Static block and products')], - ]; - } - return $this->_options; - } -} diff --git a/app/code/Magento/Catalog/view/frontend/templates/category/view.phtml b/app/code/Magento/Catalog/view/frontend/templates/category/view.phtml deleted file mode 100644 index 285f72c7a3e86..0000000000000 --- a/app/code/Magento/Catalog/view/frontend/templates/category/view.phtml +++ /dev/null @@ -1,47 +0,0 @@ - - -helper('Magento\Catalog\Helper\Output'); - $_category = $block->getCurrentCategory(); - $_imgHtml = ''; - if ($_imgUrl = $_category->getImageUrl()) { - $_imgHtml = '
' . $block->escapeHtml($_category->getName()) . '
'; - $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image'); - } -?> -
- - - - - getCurrentCategory()->getDescription()): ?> -
- categoryAttribute($_category, $_description, 'description') ?> -
- - - isContentMode()): ?> - getCmsBlockHtml() ?> - - isMixedMode()): ?> - getCmsBlockHtml() ?> - getProductListHtml() ?> - - - getProductListHtml() ?> - -
diff --git a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_classes.php b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_classes.php index 2a4484282e46a..644996e5f3b79 100755 --- a/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_classes.php +++ b/dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_classes.php @@ -43,6 +43,10 @@ ['Mage_Adminhtml_Block_Backup_Grid'], ['Mage_Adminhtml_Block_Cache_Grid'], ['Mage_Adminhtml_Block_Catalog'], + [ + 'Magento\Catalog\Model\Resource\Category\Attribute\Source\Mode', + 'Magento\Catalog\Model\Category\Attribute\Source\Mode', + ], ['Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Grid'], ['Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config_Grid'], ['Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Group_Grid'],