Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function getCollection()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCollection');
     if (!$pluginInfo) {
         return parent::getCollection();
     } else {
         return $this->___callPlugins('getCollection', func_get_args(), $pluginInfo);
     }
 }
Пример #2
0
 /**
  * Retrieve new (not loaded) Store collection object with group filter
  *
  * @return \Magento\Store\Model\Resource\Store\Collection
  */
 public function getStoreCollection()
 {
     return $this->_store->getCollection()->addGroupFilter($this->getId());
 }