You are here

class CropTypeAspectRatioValidationConstraint in Crop API 8.2

Same name and namespace in other branches
  1. 8 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

Expanded class hierarchy of CropTypeAspectRatioValidationConstraint

File

src/Plugin/Validation/Constraint/CropTypeAspectRatioValidationConstraint.php, line 15

Namespace

Drupal\crop\Plugin\Validation\Constraint
View 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