DimensionsConstraint.php in Physical Fields 8
File
src/Plugin/Validation/Constraint/DimensionsConstraint.phpView source
<?php
namespace Drupal\physical\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Dimensions constraint.
*
* @Constraint(
* id = "Dimensions",
* label = @Translation("Dimension", context = "Validation"),
* type = { "physical_dimensions" }
* )
*/
class DimensionsConstraint extends Constraint {
public $emptyMessage = '@name field is required.';
public $invalidMessage = '@name field must be a number.';
}
Classes
Name | Description |
---|---|
DimensionsConstraint | Dimensions constraint. |