コード例 #1
0
ファイル: AbstractCollection.php プロジェクト: nja78/magento2
 /**
  * Redeclare before load method for adding event
  *
  * @return $this
  */
 protected function _beforeLoad()
 {
     parent::_beforeLoad();
     $this->_eventManager->dispatch('core_collection_abstract_load_before', ['collection' => $this]);
     if ($this->_eventPrefix && $this->_eventObject) {
         $this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);
     }
     return $this;
 }