You are here

service dbtng_example.repository in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/dbtng_example/dbtng_example.services.yml \dbtng_example.repository

Class

Drupal\dbtng_example\DbtngExampleRepository
4 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
  1. class: Drupal\dbtng_example\DbtngExampleRepository
  2. arguments:
  3. - '@database'
  4. - '@string_translation'
  5. - '@messenger'