trait HasFormattedContent

A trait to add formatted content to a model.

Properties

static protected Formatter $formatter
string|null $content
string|null $parsed_content

Methods

string|null
getContentAttribute(string|null $value)

No description

string|null
getParsedContentAttribute()

No description

void
setContentAttribute(string $value, User|null $actor = null)

No description

void
setParsedContentAttribute(string $value)

No description

string
formatContent(ServerRequestInterface|null $request = null)

Get the content rendered as HTML.

static Formatter
getFormatter()

No description

static void
setFormatter(Formatter $formatter)

No description

Details

string|null getContentAttribute(string|null $value)

Parameters

string|null $value

Return Value

string|null

string|null getParsedContentAttribute()

Return Value

string|null

void setContentAttribute(string $value, User|null $actor = null)

Parameters

string $value
User|null $actor

Return Value

void

void setParsedContentAttribute(string $value)

Parameters

string $value

Return Value

void

string formatContent(ServerRequestInterface|null $request = null)

Get the content rendered as HTML.

Parameters

ServerRequestInterface|null $request

Return Value

string

static Formatter getFormatter()

Return Value

Formatter

static void setFormatter(Formatter $formatter)

Parameters

Formatter $formatter

Return Value

void