class IsbnConstraint in ISBN Field 8
Validation constraint for the ISBN field.
Plugin annotation
@Constraint(
id = "IsbnValidation",
label = @Translation("ISBN provider constraint", context = "Validation"),
)
Hierarchy
- class \Drupal\isbn\Plugin\Validation\Constraint\IsbnConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of IsbnConstraint
File
- src/
Plugin/ Validation/ Constraint/ IsbnConstraint.php, line 15
Namespace
Drupal\isbn\Plugin\Validation\ConstraintView source
class IsbnConstraint extends Constraint {
/**
* Message shown when an invalid ISBN number is provided.
*
* @var string
*/
public $message = 'The value provided isn\'t a valid ISBN number.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IsbnConstraint:: |
public | property | Message shown when an invalid ISBN number is provided. |