public function Channel::getChannelURI in Rocket.Chat 8.2
File
- modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php, line 608
Class
Namespace
Drupal\rocket_chat_api\RocketChat\ElementCode
public function getChannelURI() {
if ($this
->hasType(self::PRIVATE_CHANNEL)) {
return "/group/" . $this
->getSafeChannelName();
}
else {
return "/channel/" . $this
->getSafeChannelName();
}
}