From 3819438618718006dd7d7f1732941d6ca42f1ea5 Mon Sep 17 00:00:00 2001 From: Lars Roettig Date: Thu, 3 Dec 2020 17:58:39 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Gabriel da Gama --- app/code/Magento/Cms/Model/Page/DataProvider.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/Magento/Cms/Model/Page/DataProvider.php b/app/code/Magento/Cms/Model/Page/DataProvider.php index fd4b71090e6eb..24b24099d0e7a 100644 --- a/app/code/Magento/Cms/Model/Page/DataProvider.php +++ b/app/code/Magento/Cms/Model/Page/DataProvider.php @@ -78,9 +78,7 @@ public function __construct( ?CustomLayoutManagerInterface $customLayoutManager = null, ?PageRepositoryInterface $pageRepository = null ) { - parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data, $pool); - $this->collection = $pageCollectionFactory->create(); $this->dataPersistor = $dataPersistor; $this->auth = $auth ?? ObjectManager::getInstance()->get(AuthorizationInterface::class); @@ -145,7 +143,7 @@ public function getData(): array * Loads the current page by current request params. * @return Page|null */ - public function getCurrentPage(): ?Page + private function getCurrentPage(): ?Page { if (!$this->getRequestFieldName()) { return null;