Skip to content

Commit a15f4cc

Browse files
committed
Add EventPrefix to CMS Page/Block Collection
1 parent 0f71c20 commit a15f4cc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

app/code/Magento/Cms/Model/ResourceModel/Block/Collection.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class Collection extends AbstractCollection
1818
*/
1919
protected $_idFieldName = 'block_id';
2020

21+
/**
22+
* Event prefix
23+
*
24+
* @var string
25+
*/
26+
protected $_eventPrefix = 'cms_block_collection';
27+
2128
/**
2229
* Perform operations after collection load
2330
*

app/code/Magento/Cms/Model/ResourceModel/Page/Collection.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ class Collection extends AbstractCollection
2525
*/
2626
protected $_previewFlag;
2727

28+
/**
29+
* Event prefix
30+
*
31+
* @var string
32+
*/
33+
//protected $_eventPrefix = 'cms_page_collection';
34+
2835
/**
2936
* Define resource model
3037
*

0 commit comments

Comments
 (0)