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