getAdapter(); $rule = $effect->getRule(); $target = $effect->getTarget(); foreach ($target as $webhook_phid) { $adapter->queueWebhook($webhook_phid, $rule->getPHID()); } $this->logEffect(self::DO_WEBHOOK, $target); } public function getHeraldActionStandardType() { return self::STANDARD_PHID_LIST; } protected function getActionEffectMap() { return array( self::DO_WEBHOOK => array( 'icon' => 'fa-cloud-upload', 'color' => 'green', 'name' => pht('Called Webhooks'), ), ); } public function renderActionDescription($value) { return pht('Call webhooks: %s.', $this->renderHandleList($value)); } protected function renderActionEffectDescription($type, $data) { return pht('Called webhooks: %s.', $this->renderHandleList($data)); } protected function getDatasource() { return new HeraldWebhookDatasource(); } }