typed_entity_example.services.yml 967 Bytes
Newer Older
e0ipso's avatar
e0ipso committed
1
services:
e0ipso's avatar
e0ipso committed
2
3
4
5
6
  typed_entity_example.article:
    # If you don't have custom logic for your repository you can use the base
    # class and save yourself from writing another empty class.
    # class: Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase
    class: Drupal\typed_entity_example\TypedRepositories\ArticleRepository
e0ipso's avatar
e0ipso committed
7
    parent: Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase
e0ipso's avatar
e0ipso committed
8
    public: true
e0ipso's avatar
e0ipso committed
9
10
11
12
13
    tags:
      -
        name: typed_entity_repository
        entity_type_id: node
        bundle: article
e0ipso's avatar
e0ipso committed
14
        wrapper_class: Drupal\typed_entity_example\WrappedEntities\Article
e0ipso's avatar
e0ipso committed
15
16
17
18
19
20
21
22
23
  typed_entity_example.user:
    class: Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase
    parent: Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase
    public: true
    tags:
      -
        name: typed_entity_repository
        entity_type_id: user
        wrapper_class: Drupal\typed_entity_example\WrappedEntities\User