class Iso8601StringConstraint in Duration Field 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/Validation/Constraint/Iso8601StringConstraint.php \Drupal\duration_field\Plugin\Validation\Constraint\Iso8601StringConstraint
Checks that the submitted value is a valid ISO 8601 duration string.
Plugin annotation
@Constraint(
id = "iso_8601_string",
label = @Translation("ISO 8601 Duration String", context = "Validation"),
type = "string"
)
Hierarchy
- class \Drupal\duration_field\Plugin\Validation\Constraint\Iso8601StringConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of Iso8601StringConstraint
File
- src/
Plugin/ Validation/ Constraint/ Iso8601StringConstraint.php, line 16
Namespace
Drupal\duration_field\Plugin\Validation\ConstraintView source
class Iso8601StringConstraint extends Constraint {
/**
* The message shown when the value is not a valid ISO 8601 duration string.
*
* @var string
*/
public $notIso8601 = '%value is not a valid ISO 8601 duration string';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Iso8601StringConstraint:: |
public | property | The message shown when the value is not a valid ISO 8601 duration string. |