# raghavdev/project6 architecture

> Architecture diagram of the GitHub repository raghavdev/project6, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/raghavdev/project6
- Repository: https://github.com/raghavdev/project6

## Overview

Drupal is a modular content-management platform: site users interact with a configured website whose content and other domain data are handled by core and extension modules, with themes controlling presentation. The sampled material exposes entity persistence, menu storage, session middleware, and Panels plugin storage, but not the complete request router or rendering pipeline. The graph therefore combines those evidenced internals with README-described capabilities; broader module, image, search, and theme relationships are documented capabilities rather than traced calls.

Main entry points: [`core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php) (SQL entity storage), [`modules/contrib/panels/src/Storage/PanelsStorageManager.php`](https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Storage/PanelsStorageManager.php) (Panels storage manager), [`core/lib/Drupal/Core/Database/Database.php`](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Database/Database.php) (Database API), [`core/modules/comment/src/CommentStorage.php`](https://github.com/raghavdev/project6/blob/master/core/modules/comment/src/CommentStorage.php) (Comment storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request and identity"]
  node_session["Session middleware<br/>[Session.php]"]
  node_account["User accounts<br/>[UserStorage.php]"]
end

subgraph group_content["Content and persistence"]
  node_node_preview["Content preview"]
  node_entity_storage["Entity lifecycle"]
  node_sql_storage["SQL entity storage"]
  node_comment_storage["Comment storage<br/>[CommentStorage.php]"]
  node_term_storage["Taxonomy storage<br/>[TermStorage.php]"]
  node_menu_storage["Menu tree storage"]
end

subgraph group_extension["Extensions and display"]
  node_panels_manager["Panels storage manager"]
  node_panels_page_storage["Page Manager storage"]
  node_panels_display["Panels display"]
  node_extensions["Site modules"]
  node_themes["Site themes"]
  node_plugin_metadata["Plugin annotations<br/>[Plugin.php]"]
  node_display_metadata["Display variants<br/>[DisplayVariant.php]"]
  node_migration_iterator["Migration processing<br/>[Iterator.php]"]
end

subgraph group_platform["Platform services"]
  node_database["Database API<br/>[Database.php]"]
  node_connection["Database connection<br/>[Connection.php]"]
  node_cache["Cache services"]
  node_service_container["Service access<br/>[Drupal.php]"]
  node_installation["Site installation<br/>[install.php]"]
  node_key_value[("Key-value storage<br/>[MemoryStorage.php]")]
end

node_visitor(("Site user"))

node_visitor -->|"sends HTTP requests"| node_session
node_session -.->|"establishes identity"| node_account
node_node_preview -.->|"uses entity services"| node_entity_storage
node_entity_storage -->|"specializes storage"| node_sql_storage
node_sql_storage -->|"executes queries"| node_database
node_sql_storage -->|"uses connection"| node_connection
node_comment_storage -->|"extends storage"| node_sql_storage
node_comment_storage -->|"queries data"| node_database
node_comment_storage -->|"uses account context"| node_session
node_term_storage -->|"extends storage"| node_sql_storage
node_menu_storage -->|"queries data"| node_database
node_menu_storage -->|"uses cache backend"| node_cache
node_menu_storage -->|"uses plugin annotations"| node_plugin_metadata
node_panels_manager -->|"creates storage plugin"| node_panels_page_storage
node_panels_page_storage -->|"uses display variant"| node_panels_display
node_panels_manager -->|"discovers plugins"| node_plugin_metadata
node_panels_manager -->|"registers display metadata"| node_display_metadata
node_panels_manager -->|"configures cache"| node_cache
node_service_container -->|"provides service"| node_database
node_service_container -->|"provides cache"| node_cache
node_service_container -->|"provides storage"| node_key_value
node_installation -.->|"installs core site"| node_extensions
node_extensions -.->|"supports site appearance"| node_themes
node_extensions -.->|"includes migration capability"| node_migration_iterator

click node_session "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/StackMiddleware/Session.php"
click node_account "https://github.com/raghavdev/project6/blob/master/core/modules/user/src/UserStorage.php"
click node_node_preview "https://github.com/raghavdev/project6/blob/master/core/modules/node/src/Controller/NodePreviewController.php"
click node_entity_storage "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php"
click node_sql_storage "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php"
click node_comment_storage "https://github.com/raghavdev/project6/blob/master/core/modules/comment/src/CommentStorage.php"
click node_term_storage "https://github.com/raghavdev/project6/blob/master/core/modules/taxonomy/src/TermStorage.php"
click node_menu_storage "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Menu/MenuTreeStorage.php"
click node_database "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Database/Database.php"
click node_connection "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Database/Connection.php"
click node_cache "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Cache/CacheBackendInterface.php"
click node_service_container "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal.php"
click node_panels_manager "https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Storage/PanelsStorageManager.php"
click node_panels_page_storage "https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Plugin/PanelsStorage/PageManagerPanelsStorage.php"
click node_panels_display "https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Plugin/DisplayVariant/PanelsDisplayVariant.php"
click node_extensions "https://github.com/raghavdev/project6/tree/master/core/modules"
click node_themes "https://github.com/raghavdev/project6/tree/master/themes"
click node_installation "https://github.com/raghavdev/project6/blob/master/core/install.php"
click node_plugin_metadata "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Component/Annotation/Plugin.php"
click node_display_metadata "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php"
click node_migration_iterator "https://github.com/raghavdev/project6/blob/master/core/modules/migrate/src/Plugin/migrate/process/Iterator.php"
click node_key_value "https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/KeyValueStore/MemoryStorage.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_session,node_account,node_visitor toneBlue
class node_node_preview,node_entity_storage,node_sql_storage,node_comment_storage,node_term_storage,node_menu_storage toneAmber
class node_panels_manager,node_panels_page_storage,node_panels_display,node_extensions,node_themes,node_plugin_metadata,node_display_metadata,node_migration_iterator toneMint
class node_database,node_connection,node_cache,node_service_container,node_installation,node_key_value toneRose
```

## Components

### Request and identity

- [Session middleware](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/StackMiddleware/Session.php): `core/lib/Drupal/Core/StackMiddleware/Session.php`
- [User accounts](https://github.com/raghavdev/project6/blob/master/core/modules/user/src/UserStorage.php): `core/modules/user/src/UserStorage.php`

### Content and persistence

- [Content preview](https://github.com/raghavdev/project6/blob/master/core/modules/node/src/Controller/NodePreviewController.php): `core/modules/node/src/Controller/NodePreviewController.php`
- [Entity lifecycle](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php): `core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php`
- [SQL entity storage](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php): `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`
- [Comment storage](https://github.com/raghavdev/project6/blob/master/core/modules/comment/src/CommentStorage.php): `core/modules/comment/src/CommentStorage.php`
- [Taxonomy storage](https://github.com/raghavdev/project6/blob/master/core/modules/taxonomy/src/TermStorage.php): `core/modules/taxonomy/src/TermStorage.php`
- [Menu tree storage](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Menu/MenuTreeStorage.php): `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`

### Extensions and display

- [Panels storage manager](https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Storage/PanelsStorageManager.php): `modules/contrib/panels/src/Storage/PanelsStorageManager.php`
- [Page Manager storage](https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Plugin/PanelsStorage/PageManagerPanelsStorage.php): `modules/contrib/panels/src/Plugin/PanelsStorage/PageManagerPanelsStorage.php`
- [Panels display](https://github.com/raghavdev/project6/blob/master/modules/contrib/panels/src/Plugin/DisplayVariant/PanelsDisplayVariant.php): `modules/contrib/panels/src/Plugin/DisplayVariant/PanelsDisplayVariant.php`
- [Site modules](https://github.com/raghavdev/project6/tree/master/core/modules): `core/modules`
- [Site themes](https://github.com/raghavdev/project6/tree/master/themes): `themes`
- [Plugin annotations](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Component/Annotation/Plugin.php): `core/lib/Drupal/Component/Annotation/Plugin.php`
- [Display variants](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php): `core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php`
- [Migration processing](https://github.com/raghavdev/project6/blob/master/core/modules/migrate/src/Plugin/migrate/process/Iterator.php): `core/modules/migrate/src/Plugin/migrate/process/Iterator.php`

### Platform services

- [Database API](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Database/Database.php): `core/lib/Drupal/Core/Database/Database.php`
- [Database connection](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Database/Connection.php): `core/lib/Drupal/Core/Database/Connection.php`
- [Cache services](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/Cache/CacheBackendInterface.php): `core/lib/Drupal/Core/Cache/CacheBackendInterface.php`
- [Service access](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal.php): `core/lib/Drupal.php`
- [Site installation](https://github.com/raghavdev/project6/blob/master/core/install.php): `core/install.php`
- [Key-value storage](https://github.com/raghavdev/project6/blob/master/core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php): `core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php`

### Other components

- **Site user**

## Connections

- Site user → Session middleware: sends HTTP requests (evidence: `core/lib/Drupal/Core/StackMiddleware/Session.php`)
- Session middleware → User accounts: establishes identity
- Content preview → Entity lifecycle: uses entity services
- Entity lifecycle → SQL entity storage: specializes storage (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- SQL entity storage → Database API: executes queries (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- SQL entity storage → Database connection: uses connection (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- Comment storage → SQL entity storage: extends storage (evidence: `core/modules/comment/src/CommentStorage.php`)
- Comment storage → Database API: queries data (evidence: `core/modules/comment/src/CommentStorage.php`)
- Comment storage → Session middleware: uses account context (evidence: `core/modules/comment/src/CommentStorage.php`)
- Taxonomy storage → SQL entity storage: extends storage (evidence: `core/modules/taxonomy/src/TermStorage.php`)
- Menu tree storage → Database API: queries data (evidence: `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`)
- Menu tree storage → Cache services: uses cache backend (evidence: `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`)
- Menu tree storage → Plugin annotations: uses plugin annotations (evidence: `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`)
- Panels storage manager → Page Manager storage: creates storage plugin (evidence: `modules/contrib/panels/src/Storage/PanelsStorageManager.php`)
- Page Manager storage → Panels display: uses display variant (evidence: `modules/contrib/panels/src/Plugin/PanelsStorage/PageManagerPanelsStorage.php`)
- Panels storage manager → Plugin annotations: discovers plugins (evidence: `modules/contrib/panels/src/Storage/PanelsStorageManager.php`)
- Panels storage manager → Display variants: registers display metadata (evidence: `modules/contrib/panels/src/Storage/PanelsStorageManager.php`)
- Panels storage manager → Cache services: configures cache (evidence: `modules/contrib/panels/src/Storage/PanelsStorageManager.php`)
- Service access → Database API: provides service (evidence: `core/lib/Drupal.php`)
- Service access → Cache services: provides cache (evidence: `core/lib/Drupal.php`)
- Service access → Key-value storage: provides storage (evidence: `core/lib/Drupal.php`)
- Site installation → Site modules: installs core site
- Site modules → Site themes: supports site appearance (evidence: `themes/contrib/bootstrap/src/Utility/Storage.php`)
- Site modules → Migration processing: includes migration capability (evidence: `core/modules/migrate/src/Plugin/migrate/process/Iterator.php`)
