atdc/web/modules/custom/example/example.services.yml
Oliver Davies 75b17fd565 Add lesson 4
- Add initial `PostNodeRepository`
- Move logic to Repository
- Inject `EntityTypeManagerInterface`
- Add `PostNodeRepositoryTest`
- Add failing test method
- Failing test: non-existent service
- The "node" entity type does not exist.
- Create posts
- Add assertions based on the `created` date
- Sort nodes before returning them
- Return values to reset array keys
2024-01-14 09:37:02 +00:00

5 lines
104 B
YAML

services:
Drupal\example\Repository\PostNodeRepository:
arguments:
- '@entity_type.manager'