class PrivateMessageThreadMemberConstraint in Private Message 8.2
Same name and namespace in other branches
- 8 src/Plugin/Validation/Constraint/PrivateMessageThreadMemberConstraint.php \Drupal\private_message\Plugin\Validation\Constraint\PrivateMessageThreadMemberConstraint
Checks that members of the thread have permission to use private messages.
Plugin annotation
@Constraint(
id = "private_message_thread_member",
label = @Translation("Private Message Thread Member", context = "Validation"),
)
Hierarchy
- class \Drupal\private_message\Plugin\Validation\Constraint\PrivateMessageThreadMemberConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of PrivateMessageThreadMemberConstraint
File
- src/
Plugin/ Validation/ Constraint/ PrivateMessageThreadMemberConstraint.php, line 15
Namespace
Drupal\private_message\Plugin\Validation\ConstraintView source
class PrivateMessageThreadMemberConstraint extends Constraint {
/**
* Constraint violation error.
*
* The message that is shown if the user does not have permission to use the
* private message system. We give a user not found error rather than a
* permissions error, as revealing a permissions error would allow users to
* discover users on the site who are not part of the private message system.
*
* @var string
*/
public $userPrivateMessagePermissionError = 'User %user not found';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMessageThreadMemberConstraint:: |
public | property | Constraint violation error. |