예제 #1
0
 /**
  * @param string $entityType
  * @param array $entityData
  * @param array $arguments
  * @return array
  * @throws \Exception
  */
 public function execute($entityType, $entityData, $arguments = [])
 {
     $linkField = $this->metadataPool->getMetadata($entityType)->getLinkField();
     $entityId = $entityData[$linkField];
     $entityData['customer_group_ids'] = $this->ruleResource->getCustomerGroupIds($entityId);
     $entityData['website_ids'] = $this->ruleResource->getWebsiteIds($entityId);
     return $entityData;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getWebsiteIds($ruleId)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getWebsiteIds');
     if (!$pluginInfo) {
         return parent::getWebsiteIds($ruleId);
     } else {
         return $this->___callPlugins('getWebsiteIds', func_get_args(), $pluginInfo);
     }
 }