class DimensionsConstraint in Physical Fields 8
Dimensions constraint.
Plugin annotation
@Constraint(
id = "Dimensions",
label = @Translation("Dimension", context = "Validation"),
type = { "physical_dimensions" }
)
Hierarchy
- class \Drupal\physical\Plugin\Validation\Constraint\DimensionsConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of DimensionsConstraint
File
- src/
Plugin/ Validation/ Constraint/ DimensionsConstraint.php, line 16
Namespace
Drupal\physical\Plugin\Validation\ConstraintView source
class DimensionsConstraint extends Constraint {
public $emptyMessage = '@name field is required.';
public $invalidMessage = '@name field must be a number.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DimensionsConstraint:: |
public | property | ||
DimensionsConstraint:: |
public | property |