You are here

public static function Channel::toSafeChannelName in Rocket.Chat 8.2

Parameters

string|null $channelname:

Return value

string

3 calls to Channel::toSafeChannelName()
Channel::changeChannelName in modules/rocket_chat_api/src/RocketChat/Element/Channel.php
Channel::getSafeChannelName in modules/rocket_chat_api/src/RocketChat/Element/Channel.php
GroupChannel::preSave in modules/rocket_chat_group/src/Plugin/Field/FieldType/GroupChannel.php
@inheritDoc

File

modules/rocket_chat_api/src/RocketChat/Element/Channel.php, line 604

Class

Channel

Namespace

Drupal\rocket_chat_api\RocketChat\Element

Code

public static function toSafeChannelName($channelname = "") {
  return rawurlencode(str_replace(" ", "_", $channelname));
}