CropTypeMachineNameValidationConstraint.php in Crop API 8
Same filename and directory in other branches
Namespace
Drupal\crop\Plugin\Validation\ConstraintFile
src/Plugin/Validation/Constraint/CropTypeMachineNameValidationConstraint.phpView source
<?php
namespace Drupal\crop\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Supports validating crop type machine name.
*
* @Constraint(
* id = "CropTypeMachineNameValidation",
* label = @Translation("Crop Type machine name", context = "Validation")
* )
*/
class CropTypeMachineNameValidationConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid machine-readable name.';
}
Classes
Name | Description |
---|---|
CropTypeMachineNameValidationConstraint | Supports validating crop type machine name. |