# city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali architecture

> Architecture diagram of the GitHub repository city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali
- Repository: https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali

## Overview

This repository is a Drupal application for the City of Helsinki unemployment services manual. Its custom modules extend service creation and moderation, group administration, search, translation, migration, reminders, and URL shortening. The strongest source evidence shows route dispatch into controllers/forms and delegation from controllers or specialized migration plugins to shared logic. The README gives little detail beyond the product identity, so several capabilities are represented from the source tree without inferred runtime connections.

Main entry points: [`public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php`](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php) (Translation page), [`public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php`](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php) (Group service creation), [`public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/ParagraphBase.php`](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/ParagraphBase.php) (Content migration), [`public/modules/custom/hel_tpm_update_reminder/src`](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_update_reminder/src) (Update reminders)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_services["Service management"]
  node_service_workflow["Service workflow"]
  node_service_dates["Service dates"]
  node_service_stats["Service statistics"]
  node_update_reminders["Update reminders"]
end

subgraph group_groups["Groups and access"]
  node_group_creation["Group service creation"]
  node_group_access["Creation access rules"]
  node_group_membership["Group membership"]
  node_bulk_invites["Bulk invitations"]
end

subgraph group_discovery["Discovery and language"]
  node_search["Service search"]
  node_search_suggest["Search suggestions"]
  node_translation_route["Translation route override"]
  node_translation_controller["Translation page"]
  node_translation_filter["Translation filters"]
  node_translation_edit["Translation editor"]
end

subgraph group_operations["Data and operations"]
  node_migration["Content migration<br/>[ParagraphBase.php]"]
  node_service_paragraphs["Service paragraph transforms"]
  node_price_paragraph["Price paragraph transform"]
  node_short_url_controller["Short URL endpoint"]
  node_short_url_service["Short URL service"]
  node_revision_access["Revision list access"]
  node_revision_routes["Revision route override"]
end

node_editor(("Service editors"))

node_editor -.->|"requests creation"| node_group_creation
node_group_creation -->|"checks access"| node_group_access
node_translation_route -->|"routes to"| node_translation_controller
node_translation_controller -->|"builds form"| node_translation_filter
node_translation_controller -->|"builds form"| node_translation_edit
node_service_paragraphs -->|"extends"| node_migration
node_price_paragraph -->|"extends"| node_migration
node_short_url_controller -->|"generates link"| node_short_url_service
node_revision_routes -->|"sets access callback"| node_revision_access
node_update_reminders -.->|"responds to state changes"| node_service_workflow

click node_service_workflow "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/service_manual_workflow/src"
click node_service_dates "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_service_dates/src"
click node_service_stats "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_service_stats/src"
click node_update_reminders "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_update_reminder/src"
click node_group_creation "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php"
click node_group_access "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/Access/GroupNodeCreateAccessService.php"
click node_group_membership "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_group/src"
click node_bulk_invites "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_group_invite/src/Form/BulkGroupInvitationCustom.php"
click node_search "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_search/src"
click node_search_suggest "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_search_autosuggest/src"
click node_translation_route "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/EventSubscriber/BetterUiTranslationRouteSubscriber.php"
click node_translation_controller "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php"
click node_translation_filter "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateFilterForm.php"
click node_translation_edit "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateEditForm.php"
click node_migration "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/ParagraphBase.php"
click node_service_paragraphs "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServiceTimeLocationParagraph.php"
click node_price_paragraph "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServicePriceParagraph.php"
click node_short_url_controller "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_url_shortener/src/Controller/ShortUrlAjaxController.php"
click node_short_url_service "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_url_shortener/src/ShortUrlService.php"
click node_revision_access "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/RevisionListAccessController.php"
click node_revision_routes "https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/EventSubscriber/RevisionListRouteSubscriber.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_service_workflow,node_service_dates,node_service_stats,node_update_reminders toneBlue
class node_group_creation,node_group_access,node_group_membership,node_bulk_invites toneAmber
class node_search,node_search_suggest,node_translation_route,node_translation_controller,node_translation_filter,node_translation_edit toneMint
class node_migration,node_service_paragraphs,node_price_paragraph,node_short_url_controller,node_short_url_service,node_revision_access,node_revision_routes toneRose
class node_editor toneIndigo
```

## Components

### Service management

- [Service workflow](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/service_manual_workflow/src): `public/modules/custom/service_manual_workflow/src`
- [Service dates](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_service_dates/src): `public/modules/custom/hel_tpm_service_dates/src`
- [Service statistics](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_service_stats/src): `public/modules/custom/hel_tpm_service_stats/src`
- [Update reminders](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_update_reminder/src): `public/modules/custom/hel_tpm_update_reminder/src`

### Groups and access

- [Group service creation](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php): `public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php`
- [Creation access rules](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/Access/GroupNodeCreateAccessService.php): `public/modules/custom/hel_tpm_general/src/Access/GroupNodeCreateAccessService.php`
- [Group membership](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_group/src): `public/modules/custom/hel_tpm_group/src`
- [Bulk invitations](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_group_invite/src/Form/BulkGroupInvitationCustom.php): `public/modules/custom/hel_tpm_group_invite/src/Form/BulkGroupInvitationCustom.php`

### Discovery and language

- [Service search](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_search/src): `public/modules/custom/hel_tpm_search/src`
- [Search suggestions](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/tree/develop/public/modules/custom/hel_tpm_search_autosuggest/src): `public/modules/custom/hel_tpm_search_autosuggest/src`
- [Translation route override](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/EventSubscriber/BetterUiTranslationRouteSubscriber.php): `public/modules/custom/hel_tpm_better_locale_interface/src/EventSubscriber/BetterUiTranslationRouteSubscriber.php`
- [Translation page](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php): `public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php`
- [Translation filters](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateFilterForm.php): `public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateFilterForm.php`
- [Translation editor](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateEditForm.php): `public/modules/custom/hel_tpm_better_locale_interface/src/Form/BetterTranslateEditForm.php`

### Data and operations

- [Content migration](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/ParagraphBase.php): `public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/ParagraphBase.php`
- [Service paragraph transforms](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServiceTimeLocationParagraph.php): `public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServiceTimeLocationParagraph.php`
- [Price paragraph transform](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServicePriceParagraph.php): `public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServicePriceParagraph.php`
- [Short URL endpoint](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_url_shortener/src/Controller/ShortUrlAjaxController.php): `public/modules/custom/hel_tpm_url_shortener/src/Controller/ShortUrlAjaxController.php`
- [Short URL service](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_url_shortener/src/ShortUrlService.php): `public/modules/custom/hel_tpm_url_shortener/src/ShortUrlService.php`
- [Revision list access](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/RevisionListAccessController.php): `public/modules/custom/hel_tpm_general/src/RevisionListAccessController.php`
- [Revision route override](https://github.com/city-of-helsinki/drupal-helfi-tyollisyyspalvelut-manuaali/blob/develop/public/modules/custom/hel_tpm_general/src/EventSubscriber/RevisionListRouteSubscriber.php): `public/modules/custom/hel_tpm_general/src/EventSubscriber/RevisionListRouteSubscriber.php`

### Other components

- **Service editors**

## Connections

- Service editors → Group service creation: requests creation
- Group service creation → Creation access rules: checks access (evidence: `public/modules/custom/hel_tpm_general/src/Controller/GroupNodeAddServiceController.php`)
- Translation route override → Translation page: routes to (evidence: `public/modules/custom/hel_tpm_better_locale_interface/src/EventSubscriber/BetterUiTranslationRouteSubscriber.php`)
- Translation page → Translation filters: builds form (evidence: `public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php`)
- Translation page → Translation editor: builds form (evidence: `public/modules/custom/hel_tpm_better_locale_interface/src/Controller/BetterUiTranslationController.php`)
- Service paragraph transforms → Content migration: extends (evidence: `public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServiceTimeLocationParagraph.php`)
- Price paragraph transform → Content migration: extends (evidence: `public/modules/custom/hel_tpm_migrate_tools/src/Plugin/migrate/process/TPMServicePriceParagraph.php`)
- Short URL endpoint → Short URL service: generates link (evidence: `public/modules/custom/hel_tpm_url_shortener/src/Controller/ShortUrlAjaxController.php`)
- Revision route override → Revision list access: sets access callback (evidence: `public/modules/custom/hel_tpm_general/src/EventSubscriber/RevisionListRouteSubscriber.php`)
- Update reminders → Service workflow: responds to state changes
