MetaFox

HasHashtagTextTrait

Trait HasHashtagTextTrait.

Table of Contents

Properties

$resource  : Model

Methods

getTransformContent()  : string
buildContentTags()  : array<string|int, mixed>
buildResourceTags()  : array<string|int, mixed>
convertToHashtag()  : string
parseHashtags()  : string|null

Properties

Methods

getTransformContent()

public getTransformContent(string $content) : string
Parameters
$content : string
Return values
string

buildContentTags()

protected buildContentTags(string|null $content) : array<string|int, mixed>
Parameters
$content : string|null
Return values
array<string|int, mixed>

buildResourceTags()

protected buildResourceTags([HasHashTag|null $resource = null ]) : array<string|int, mixed>
Parameters
$resource : HasHashTag|null = null
Return values
array<string|int, mixed>

convertToHashtag()

protected convertToHashtag(string $text) : string
Parameters
$text : string
Return values
string

parseHashtags()

protected parseHashtags(string|null $content) : string|null
Parameters
$content : string|null
Return values
string|null

        
On this page

Search results