service onlyone in Allow a content type only once (Only One) 8
Class
Drupal\onlyone\OnlyOne3 string references to onlyone
- ConfigContentTypes::create in src/
Form/ ConfigContentTypes.php - Instantiates a new instance of this class.
- OnlyOneConstraintValidator::create in src/
Plugin/ Validation/ Constraint/ OnlyOneConstraintValidator.php - Instantiates a new instance of this class.
- OnlyOneConstraintValidatorTest::testValidation in tests/
src/ Kernel/ OnlyOneConstraintValidatorTest.php - Tests the OnlyOneConstraintValidator.
File
View source
- class: Drupal\onlyone\OnlyOne
- arguments:
- - '@entity_type.manager'
- - '@database'
- - '@language_manager'
- - '@config.factory'
- - '@string_translation'