You are here

service onlyone in Allow a content type only once (Only One) 8

Class

Drupal\onlyone\OnlyOne
3 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

./onlyone.services.yml
onlyone.services.yml

View source
  1. class: Drupal\onlyone\OnlyOne
  2. arguments:
  3. - '@entity_type.manager'
  4. - '@database'
  5. - '@language_manager'
  6. - '@config.factory'
  7. - '@string_translation'