getLinkNames() public method

Get whether messages sent will have names (like @regan) will be converted into links.
public getLinkNames ( ) : boolean
return boolean
Example #1
0
 public function testInstantiationWithDefaults()
 {
     $defaults = ['channel' => '#random', 'username' => 'Archer', 'icon' => ':ghost:', 'link_names' => true, 'unfurl_links' => true, 'unfurl_media' => false, 'allow_markdown' => false, 'markdown_in_attachments' => ['text']];
     $client = new Client('http://fake.endpoint', $defaults);
     $this->assertSame($defaults['channel'], $client->getDefaultChannel());
     $this->assertSame($defaults['username'], $client->getDefaultUsername());
     $this->assertSame($defaults['icon'], $client->getDefaultIcon());
     $this->assertTrue($client->getLinkNames());
     $this->assertTrue($client->getUnfurlLinks());
     $this->assertFalse($client->getUnfurlMedia());
     $this->assertSame($defaults['allow_markdown'], $client->getAllowMarkdown());
     $this->assertSame($defaults['markdown_in_attachments'], $client->getMarkdownInAttachments());
 }
 /**
  * Get whether messages sent will have names (like @regan)
  * will be converted into links
  *
  * @return boolean 
  * @static 
  */
 public static function getLinkNames()
 {
     return \Maknz\Slack\Client::getLinkNames();
 }