You are here

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\Constraint
View source
class DimensionsConstraint extends Constraint {
  public $emptyMessage = '@name field is required.';
  public $invalidMessage = '@name field must be a number.';

}

Members