/** * Push to the view variable about channel : channel headline, channel full url, channel part url (i.e: (channel)/131) and the icon */ public function pushChannelResult() { if ($this->channel instanceof ApplicationLocalized) { $channelConfiguration = $this->channel->getChannelConfiguration(); if ($this->channel->attribute("headline")) { $this->pushResult("channel_headline", $this->channel->attribute("headline")); $this->pushResult("channel_url", $this->channel->applicationUrl()); } $this->pushResult('channel_id', $this->channel->application_id); $this->pushResult("channel_icon", StaticData::externalUrl(ClusterTool::clusterIdentifier(), $channelConfiguration->attribute("icon"))); $this->pushResult("channel_color", $channelConfiguration->attribute("color")); if($this->channelBlockId){ $this->pushResult("channel_part_url", "/(channel)/" . $this->channelBlockId); } $this->pushResult("channel_identifier", $this->channel->applicationObject()->identifier); } }