class CommentNameConstraint extends CompositeConstraintBase (View source)

Supports validating comment author names.

Properties

string $messageNameTaken

Message shown when an anonymous user comments using a registered name.

string $messageRequired

Message shown when an admin changes the comment-author to an invalid user.

string $messageMatch

Message shown when the name doesn't match the author's name.

Methods

string[]
coversFields()

An array of entity fields which should be passed to the validator.

Details

string[] coversFields()

An array of entity fields which should be passed to the validator.

Return Value

string[]

An array of field names.