File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
app/code/Magento/Cms/Model/Page Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ class DataProvider extends ModifierPoolDataProvider
52
52
*/
53
53
private $ customLayoutManager ;
54
54
55
- /**
56
- * @var null|array
57
- */
58
- private $ loadedPages ;
59
-
60
55
/**
61
56
* @var LoggerInterface
62
57
*/
@@ -111,7 +106,7 @@ public function __construct(
111
106
* @param array $meta
112
107
* @return array
113
108
*/
114
- public function prepareMeta (array $ meta ): array
109
+ public function prepareMeta (array $ meta )
115
110
{
116
111
return $ meta ;
117
112
}
@@ -121,7 +116,7 @@ public function prepareMeta(array $meta): array
121
116
*
122
117
* @return array
123
118
*/
124
- public function getData (): array
119
+ public function getData ()
125
120
{
126
121
if (isset ($ this ->loadedData )) {
127
122
return $ this ->loadedData ;
@@ -173,18 +168,13 @@ private function getCurrentPage(): Page
173
168
throw new LocalizedException (__ ('Page ID must be given ' ));
174
169
}
175
170
176
- if (isset ($ this ->loadedPages [$ pageId ])) {
177
- return $ this ->loadedPages [$ pageId ];
178
- }
179
-
180
- $ this ->loadedPages [$ pageId ] = $ this ->pageRepository ->getById ($ pageId );
181
- return $ this ->loadedPages [$ pageId ];
171
+ return $ this ->pageRepository ->getById ($ pageId );
182
172
}
183
173
184
174
/**
185
175
* @inheritDoc
186
176
*/
187
- public function getMeta (): array
177
+ public function getMeta ()
188
178
{
189
179
$ meta = parent ::getMeta ();
190
180
You can’t perform that action at this time.
0 commit comments