\Auth\Form\ValidatorUniqueGroupName

Validator for uniqueness check of group names.

Summary

Methods
Properties
Constants
__construct()
setUser()
getUser()
setAllowName()
isValid()
No public properties found
MSG_NOT_UNIQUE
No protected methods found
$user
$allowName
$messageTemplates
N/A
No private methods found
No private properties found
N/A

Constants

MSG_NOT_UNIQUE

MSG_NOT_UNIQUE

Messages

Properties

$allowName

$allowName : string

This name will be allowed, even if the value equals it.

Type

string

$messageTemplates

$messageTemplates

{@inheritDoc}

Methods

__construct()

__construct(\Auth\Entity\UserInterface|array|null $options)

Creates an instance.

Parameters

\Auth\Entity\UserInterface|array|null $options

setAllowName()

setAllowName(string $name) : \Auth\Form\Validator\UniqueGroupName

Sets the name which will be allowed.

Parameters

string $name

Returns

\Auth\Form\Validator\UniqueGroupName

isValid()

isValid(string $value) : bool

Returns true, if the given value is unique among the groups of the user.

Also returns true, if the given value equals the {@link $allowName}.

Parameters

string $value

Returns

bool