CropTypeAspectRatioValidationConstraint.php in Crop API 8.2
Same filename and directory in other branches
Namespace
Drupal\crop\Plugin\Validation\ConstraintFile
src/Plugin/Validation/Constraint/CropTypeAspectRatioValidationConstraint.phpView source
<?php
namespace Drupal\crop\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Supports validating crop type aspect ratio.
*
* @Constraint(
* id = "CropTypeAspectRatioValidation",
* label = @Translation("Crop Type aspect ratio", context = "Validation")
* )
*/
class CropTypeAspectRatioValidationConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid aspect ratio format. Should be defined in H:W form.';
}
Classes
Name | Description |
---|---|
CropTypeAspectRatioValidationConstraint | Supports validating crop type aspect ratio. |