DateTimeFormatConstraint::$badType
Same name in other branches
- 9 core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php \Drupal\datetime\Plugin\Validation\Constraint\DateTimeFormatConstraint::badType
- 8.9.x core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php \Drupal\datetime\Plugin\Validation\Constraint\DateTimeFormatConstraint::badType
- 11.x core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php \Drupal\datetime\Plugin\Validation\Constraint\DateTimeFormatConstraint::badType
Message for when the value isn't a string.
Type: string
File
-
core/
modules/ datetime/ src/ Plugin/ Validation/ Constraint/ DateTimeFormatConstraint.php, line 23
Class
- DateTimeFormatConstraint
- Validation constraint for DateTime items to ensure the format is correct.
Namespace
Drupal\datetime\Plugin\Validation\ConstraintCode
public $badType = "The datetime value must be a string.";
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.