Skip to content

Commit

Permalink
Add EventObject to CMS Page/Block Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
osrecio authored and convenient committed Oct 4, 2017
1 parent bc6180c commit e110196
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/code/Magento/Cms/Model/ResourceModel/Block/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class Collection extends AbstractCollection
*/
protected $_eventPrefix = 'cms_block_collection';

/**
* Event object
*
* @var string
*/
protected $_eventObject = 'block_collection';

/**
* Perform operations after collection load
*
Expand Down
9 changes: 8 additions & 1 deletion app/code/Magento/Cms/Model/ResourceModel/Page/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ class Collection extends AbstractCollection
*
* @var string
*/
protected $_eventPrefix = 'cms_page_collection';
protected $_eventPrefix = 'page_collection';

/**
* Event object
*
* @var string
*/
protected $_eventObject = 'order_item_collection';

/**
* Define resource model
Expand Down

0 comments on commit e110196

Please sign in to comment.