Skip to content

Commit

Permalink
Remove deprecated CMS Block reference
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Sep 5, 2022
1 parent f18ce7c commit d3bcd3b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions Service/Export/Renderer/HtmlRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Magento\Framework\View\Element\Template;
use Magento\Framework\View\FileSystem as ViewFileSystem;
use Magento\Framework\View\Page\Config;
use Magento\Framework\View\Page\Config\RendererInterface;
use Opengento\Gdpr\Service\Export\Renderer\HtmlRenderer\LayoutInitiatorInterface;
use Opengento\Gdpr\Service\Export\Renderer\HtmlRenderer\View\RendererFactory;
use function extract;
Expand Down Expand Up @@ -76,8 +75,6 @@ function () use ($data): string { return $this->renderHtml($data); }
}

/**
* @param array $data
* @return string
* @throws Exception
*/
private function renderHtml(array $data): string
Expand Down Expand Up @@ -105,8 +102,6 @@ private function renderHtml(array $data): string
}

/**
* @param array $viewVars
* @return string
* @throws Exception
*/
private function renderPage(array $viewVars): string
Expand Down
5 changes: 2 additions & 3 deletions ViewModel/Customer/Privacy/EraseDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Opengento\Gdpr\ViewModel\Customer\Privacy;

use Magento\Cms\Block\Block;
use Magento\Cms\Block\BlockByIdentifier;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
Expand Down Expand Up @@ -49,8 +48,8 @@ public function getErasureInformationHtml(): string
public function getAnonymizeInformationHtml(): string
{
return $this->anonymizeInformation ??= $this->blockFactory->createBlock(
Block::class,
['data' => ['block_id' => (string) $this->scopeConfig->getValue(
BlockByIdentifier::class,
['data' => ['identifier' => (string) $this->scopeConfig->getValue(
self::CONFIG_PATH_ANONYMIZE_INFORMATION_BLOCK,
ScopeInterface::SCOPE_STORE
)]]
Expand Down
4 changes: 0 additions & 4 deletions ViewModel/Customer/Privacy/ExportDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Opengento\Gdpr\ViewModel\Customer\Privacy;

use Magento\Cms\Block\Block;
use Magento\Cms\Block\BlockByIdentifier;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
Expand All @@ -22,9 +21,6 @@ final class ExportDataProvider implements ArgumentInterface

private BlockFactory $blockFactory;

/**
* @var string|null
*/
private ?string $exportInformation;

public function __construct(
Expand Down
1 change: 0 additions & 1 deletion ViewModel/Customer/Privacy/SettingsDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Opengento\Gdpr\ViewModel\Customer\Privacy;

use Magento\Cms\Block\Block;
use Magento\Cms\Block\BlockByIdentifier;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
Expand Down
1 change: 1 addition & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<sequence>
<module name="Magento_Theme"/>
<module name="Magento_Config"/>
<module name="Magento_Cookie"/>
<module name="Magento_Customer"/>
<module name="Magento_Quote"/>
<module name="Magento_Sales"/>
Expand Down

0 comments on commit d3bcd3b

Please sign in to comment.