Skip to content

Commit 73020c8

Browse files
authored
ENGCOM-3705: magento/magento2#?: Mark not used downloadable blocks, tests, layout updates and templates as deprecated. #19822
2 parents 7ff210c + 65f085b commit 73020c8

File tree

18 files changed

+71
-0
lines changed

18 files changed

+71
-0
lines changed

app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Composite/Fieldset/Downloadable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @api
1616
* @since 100.0.2
17+
* @deprecated
18+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
1719
*/
1820
class Downloadable extends \Magento\Downloadable\Block\Catalog\Product\Links
1921
{

app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Adminhtml catalog product downloadable items tab and form
1616
*
1717
* @author Magento Core Team <core@magentocommerce.com>
18+
* @deprecated
19+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
1820
*/
1921
class Downloadable extends Widget implements TabInterface
2022
{

app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
*
1111
* @author Magento Core Team <core@magentocommerce.com>
1212
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13+
*
14+
* @deprecated
15+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Links
1316
*/
1417
class Links extends \Magento\Backend\Block\Template
1518
{

app/code/Magento/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Samples.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* Adminhtml catalog product downloadable items tab links section
1010
*
1111
* @author Magento Core Team <core@magentocommerce.com>
12+
*
13+
* @deprecated
14+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Samples
1215
*/
1316
class Samples extends \Magento\Backend\Block\Widget
1417
{

app/code/Magento/Downloadable/Controller/Adminhtml/Downloadable/Product/Edit/Form.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
*/
77
namespace Magento\Downloadable\Controller\Adminhtml\Downloadable\Product\Edit;
88

9+
/**
10+
* Class Form
11+
*
12+
* @deprecated since downloadable information rendering moved to UI components.
13+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
14+
* @package Magento\Downloadable\Controller\Adminhtml\Downloadable\Product\Edit
15+
*/
916
class Form extends \Magento\Catalog\Controller\Adminhtml\Product\Edit
1017
{
1118
/**

app/code/Magento/Downloadable/Test/Unit/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/LinksTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
*/
66
namespace Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable;
77

8+
/**
9+
* Class LinksTest
10+
*
11+
* @package Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable
12+
*
13+
* @deprecated
14+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Links
15+
*/
816
class LinksTest extends \PHPUnit\Framework\TestCase
917
{
1018
/**

app/code/Magento/Downloadable/Test/Unit/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/SamplesTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
*/
66
namespace Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable;
77

8+
/**
9+
* Class SamplesTest
10+
*
11+
* @package Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable
12+
*
13+
* @deprecated
14+
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Samples
15+
*/
816
class SamplesTest extends \PHPUnit\Framework\TestCase
917
{
1018
/**

app/code/Magento/Downloadable/view/adminhtml/layout/catalog_product_downloadable.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8+
<!--
9+
@deprecated Adminhtml Blocks extending for Downloadable products have neen moved to UI components
10+
@see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
11+
-->
812
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
913
<update handle="downloadable_items"/>
1014
<body>

app/code/Magento/Downloadable/view/adminhtml/layout/catalog_product_simple.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8+
<!--
9+
@deprecated Adminhtml Blocks extending for Downloadable products have neen moved to UI components
10+
@see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
11+
-->
812
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
913
<update handle="downloadable_items"/>
1014
</page>

app/code/Magento/Downloadable/view/adminhtml/layout/catalog_product_view_type_downloadable.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8+
<!--
9+
@deprecated Adminhtml Blocks extending for Downloadable products have neen moved to UI components
10+
@see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
11+
-->
812
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
913
<body>
1014
<referenceBlock name="product.composite.fieldset">

0 commit comments

Comments
 (0)