class CropTypeMachineNameValidationConstraint in Crop API 8.2
Same name and namespace in other branches
- 8 src/Plugin/Validation/Constraint/CropTypeMachineNameValidationConstraint.php \Drupal\crop\Plugin\Validation\Constraint\CropTypeMachineNameValidationConstraint
Supports validating crop type machine name.
Plugin annotation
@Constraint(
id = "CropTypeMachineNameValidation",
label = @Translation("Crop Type machine name", context = "Validation")
)
Hierarchy
- class \Drupal\crop\Plugin\Validation\Constraint\CropTypeMachineNameValidationConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of CropTypeMachineNameValidationConstraint
File
- src/
Plugin/ Validation/ Constraint/ CropTypeMachineNameValidationConstraint.php, line 15
Namespace
Drupal\crop\Plugin\Validation\ConstraintView source
class CropTypeMachineNameValidationConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid machine-readable name.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CropTypeMachineNameValidationConstraint:: |
public | property | The default violation message. |