class AbstractError implements HtmlAwareErrorInterface (View source)

Properties

protected FieldInterface|null $field The field associated to the error.
private bool $messageContainsHtml Does the message contain an HTML-formatted string?

Methods

string
__toString()

Get the error message.

getField()

Get the field associated to the error.

setField(FieldInterface $field)

Set the field associated to the error.

bool
messageContainsHtml()

Does the message contain an HTML-formatted string?

$this
setMessageContainsHtml(bool $value)

Does the message contain an HTML-formatted string?

jsonSerialize()

{@inheritdoc}

Details

string __toString()

Get the error message.

Return Value

string

FieldInterface|null getField()

Get the field associated to the error.

Return Value

FieldInterface|null

setField(FieldInterface $field)

Set the field associated to the error.

Parameters

FieldInterface $field

bool messageContainsHtml()

Does the message contain an HTML-formatted string?

Return Value

bool

See also

\Concrete\Core\Error\ErrorList\Error\HtmlAwareErrorInterface::messageContainsHtml()

$this setMessageContainsHtml(bool $value)

Does the message contain an HTML-formatted string?

Parameters

bool $value

Return Value

$this

jsonSerialize()

{@inheritdoc}

See also

\JsonSerializable::jsonSerialize()