protected property OnlyOneConstraintValidator::$onlyone in Allow a content type only once (Only One) 8
The onlyone service.
Type: \Drupal\onlyone\OnlyOneInterface
File
- src/
Plugin/ Validation/ Constraint/ OnlyOneConstraintValidator.php, line 30
Class
- OnlyOneConstraintValidator
- Validates the OnlyOne constraint.
Namespace
Drupal\onlyone\Plugin\Validation\ConstraintCode
protected $onlyone;