Skip to content

Commit 5f27fd6

Browse files
committed
ACP2E-2392: [On-PREM] Dynamic block issue
- addressed build test issues
1 parent 62dff6b commit 5f27fd6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

app/code/Magento/Ui/Block/Wrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function addDataToChildComponents(UiComponentInterface $uiComponent, arr
8989
public function renderApp($data = [])
9090
{
9191
/** @var \Magento\Ui\Component\AbstractComponent $uiComponent */
92-
$uiComponent = $this->uiComponentGenerator //vezi generateXML aici de la layout
92+
$uiComponent = $this->uiComponentGenerator
9393
->generateUiComponent($this->getData('uiComponent'), $this->getLayout());
9494
$this->injectDataInDataSource($uiComponent, $this->getData());
9595
$this->addDataToChildComponents($uiComponent, $data);

app/code/Magento/Ui/Component/Listing.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class Listing extends AbstractComponent
1818
{
19-
const NAME = 'listing';
19+
public const NAME = 'listing';
2020

2121
/**
2222
* @var array
@@ -26,7 +26,7 @@ class Listing extends AbstractComponent
2626
/**
2727
* @var ContentTypeFactory
2828
*/
29-
protected ContentTypeFactory $contentTypeFactory;
29+
private ContentTypeFactory $contentTypeFactory;
3030

3131
/**
3232
* @param ContextInterface $context
@@ -36,9 +36,9 @@ class Listing extends AbstractComponent
3636
*/
3737
public function __construct(
3838
ContextInterface $context,
39-
?ContentTypeFactory $contentTypeFactory = null,
4039
array $components = [],
41-
array $data = []
40+
array $data = [],
41+
?ContentTypeFactory $contentTypeFactory = null
4242
) {
4343
$this->contentTypeFactory = $contentTypeFactory ?: ObjectManager::getInstance()->get(ContentTypeFactory::class);
4444
parent::__construct($context, $components, $data);
@@ -55,15 +55,16 @@ public function getComponentName()
5555
}
5656

5757
/**
58-
* {@inheritdoc}
58+
* @inheritdoc
5959
*/
6060
public function getDataSourceData()
6161
{
6262
return ['data' => $this->getContext()->getDataProvider()->getData()];
6363
}
6464

6565
/**
66-
* {@inheritdoc}
66+
* @param string $contentType
67+
* @return string
6768
*/
6869
public function render(string $contentType = '')
6970
{

0 commit comments

Comments
 (0)