You are here

class CropTypeMachineNameValidationConstraint in Crop API 8.2

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

Expanded class hierarchy of CropTypeMachineNameValidationConstraint

File

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

Namespace

Drupal\crop\Plugin\Validation\Constraint
View source
class CropTypeMachineNameValidationConstraint extends Constraint {

  /**
   * The default violation message.
   *
   * @var string
   */
  public $message = 'Invalid machine-readable name.';

}

Members