AbstractError
abstract class AbstractError implements HtmlAwareErrorInterface (View source)
Properties
protected FieldInterface|null | $field | The field associated to the error. |
|
private bool
Since: concrete5 8.5.0a3
|
$messageContainsHtml | Does the message contain an HTML-formatted string? |
Methods
string
__toString()
Get the error message.
FieldInterface|null
getField()
Get 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.
FieldInterface|null
getField()
Get the field associated to the error.
setField(FieldInterface $field)
Set the field associated to the error.
bool
messageContainsHtml()
Since: concrete5 8.5.0a3
Does the message contain an HTML-formatted string?
$this
setMessageContainsHtml(bool $value)
Since: concrete5 8.5.0a3
Does the message contain an HTML-formatted string?
jsonSerialize()
{@inheritdoc}