service dbtng_example.repository in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/dbtng_example/dbtng_example.services.yml \dbtng_example.repository
Class
Drupal\dbtng_example\DbtngExampleRepository4 string references to dbtng_example.repository
- DbtngExampleAddForm::create in dbtng_example/src/ Form/ DbtngExampleAddForm.php 
- We'll use the ContainerInjectionInterface pattern here to inject the current user and also get the string_translation service.
- DbtngExampleController::create in dbtng_example/src/ Controller/ DbtngExampleController.php 
- Instantiates a new instance of this class.
- DbtngExampleRepositoryTest::testDbtngExampleStorage in dbtng_example/tests/ src/ Kernel/ DbtngExampleRepositoryTest.php 
- Tests several combinations, adding entries, updating and deleting.
- DbtngExampleUpdateForm::create in dbtng_example/src/ Form/ DbtngExampleUpdateForm.php 
- Instantiates a new instance of this class.
File
- dbtng_example/dbtng_example.services.yml 
- dbtng_example/dbtng_example.services.yml
View source
- class: Drupal\dbtng_example\DbtngExampleRepository
- arguments:
-   - '@database'
-   - '@string_translation'
-   - '@messenger'
