File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Cms/Model/Config/Source Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ class Page implements \Magento\Framework\Option\ArrayInterface
21
21
protected $ pageRepository ;
22
22
23
23
/**
24
- * @var \Magento\Framework\Api\SearchCriteriaInterfaceFactory
24
+ * @var \Magento\Framework\Api\SearchCriteriaBuilder
25
25
*/
26
- protected $ pageCriteriaFactory ;
26
+ protected $ pageCriteriaBuilder ;
27
27
28
28
/**
29
29
* @param \Magento\Cms\Model\PageRepository $pageRepository
30
- * @param \Magento\Framework\Api\SearchCriteriaInterfaceFactory $pageCriteriaFactory
30
+ * @param \Magento\Framework\Api\SearchCriteriaBuilder $pageCriteriaBuilder
31
31
*/
32
32
public function __construct (
33
33
\Magento \Cms \Model \PageRepository $ pageRepository ,
34
- \Magento \Framework \Api \SearchCriteriaInterfaceFactory $ pageCriteriaFactory
34
+ \Magento \Framework \Api \SearchCriteriaBuilder $ pageCriteriaBuilder
35
35
) {
36
36
$ this ->pageRepository = $ pageRepository ;
37
- $ this ->pageCriteriaFactory = $ pageCriteriaFactory ;
37
+ $ this ->pageCriteriaBuilder = $ pageCriteriaBuilder ;
38
38
}
39
39
40
40
/**
@@ -45,7 +45,7 @@ public function __construct(
45
45
public function toOptionArray ()
46
46
{
47
47
if (!$ this ->options ) {
48
- $ this ->options = $ this ->pageRepository ->getList ($ this ->pageCriteriaFactory ->create ())->toOptionIdArray ();
48
+ $ this ->options = $ this ->pageRepository ->getList ($ this ->pageCriteriaBuilder ->create ())->toOptionIdArray ();
49
49
}
50
50
return $ this ->options ;
51
51
}
You can’t perform that action at this time.
0 commit comments