# lookwind09/drupal architecture

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

- Interactive diagram: https://gitdiagram.com/lookwind09/drupal
- Repository: https://github.com/lookwind09/drupal

## Overview

Drupal is a modular content-management platform. A typical user request enters through the site front controller, uses the core service container and domain services to load or update content, and returns a rendered response; the supplied excerpts do not show that full request-routing chain. The graph therefore emphasizes evidenced internal relationships and includes major documented capabilities such as configuration, menus, layout building, and editor support. Some important subsystems are represented by their exact directories because their implementation was not sampled.

Main entry points: [`core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php) (SQL entity storage), [`core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php`](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php) (Content entity storage), [`core/lib/Drupal/Core/Database/Connection.php`](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Database/Connection.php) (Database operations), [`index.php`](https://github.com/lookwind09/drupal/blob/9.5.x/index.php) (Front controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Core runtime"]
  node_front["Front controller<br/>[index.php]"]
  node_services["Service container<br/>[Drupal.php]"]
  node_cache["Cache utilities<br/>[Cache.php]"]
end

subgraph group_content["Content and data"]
  node_entity["Content entity storage"]
  node_sqlstorage["SQL entity storage"]
  node_field["Field definitions"]
  node_database["Database connections<br/>[Database.php]"]
  node_connection["Database operations<br/>[Connection.php]"]
end

subgraph group_experience["Site experience"]
  node_nodepreview["Node preview"]
  node_menu["Menu tree"]
  node_layout["Layout Builder"]
  node_editor["CKEditor upgrade<br/>[Core.php]"]
end

subgraph group_admin["Administration"]
  node_config["Configuration management"]
  node_modules["Extensible modules"]
end

node_visitor(("Site user"))

node_visitor -.->|"requests"| node_front
node_front -.->|"bootstraps"| node_services
node_entity -->|"extends storage"| node_sqlstorage
node_sqlstorage -->|"executes queries"| node_connection
node_database -->|"opens connections"| node_connection
node_entity -->|"uses cache helpers"| node_cache
node_sqlstorage -->|"uses cache backend"| node_cache
node_nodepreview -.->|"previews content"| node_entity
node_menu -->|"queries storage"| node_connection
node_layout -.->|"extends platform"| node_modules

click node_front "https://github.com/lookwind09/drupal/blob/9.5.x/index.php"
click node_services "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal.php"
click node_cache "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Cache/Cache.php"
click node_entity "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php"
click node_sqlstorage "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php"
click node_field "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php"
click node_database "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Database/Database.php"
click node_connection "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Database/Connection.php"
click node_nodepreview "https://github.com/lookwind09/drupal/blob/9.5.x/core/modules/node/src/Controller/NodePreviewController.php"
click node_menu "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Menu/MenuTreeStorage.php"
click node_layout "https://github.com/lookwind09/drupal/tree/9.5.x/core/modules/layout_builder"
click node_editor "https://github.com/lookwind09/drupal/blob/9.5.x/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php"
click node_config "https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Config/ExportStorageManager.php"
click node_modules "https://github.com/lookwind09/drupal/tree/9.5.x/core/modules"

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_front,node_services,node_cache,node_visitor toneBlue
class node_entity,node_sqlstorage,node_field,node_database,node_connection toneAmber
class node_nodepreview,node_menu,node_layout,node_editor toneMint
class node_config,node_modules toneRose
```

## Components

### Core runtime

- [Front controller](https://github.com/lookwind09/drupal/blob/9.5.x/index.php): `index.php`
- [Service container](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal.php): `core/lib/Drupal.php`
- [Cache utilities](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Cache/Cache.php): `core/lib/Drupal/Core/Cache/Cache.php`

### Content and data

- [Content entity storage](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php): `core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php`
- [SQL entity storage](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php): `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`
- [Field definitions](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php): `core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php`
- [Database connections](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Database/Database.php): `core/lib/Drupal/Core/Database/Database.php`
- [Database operations](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Database/Connection.php): `core/lib/Drupal/Core/Database/Connection.php`

### Site experience

- [Node preview](https://github.com/lookwind09/drupal/blob/9.5.x/core/modules/node/src/Controller/NodePreviewController.php): `core/modules/node/src/Controller/NodePreviewController.php`
- [Menu tree](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Menu/MenuTreeStorage.php): `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`
- [Layout Builder](https://github.com/lookwind09/drupal/tree/9.5.x/core/modules/layout_builder): `core/modules/layout_builder`
- [CKEditor upgrade](https://github.com/lookwind09/drupal/blob/9.5.x/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php): `core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php`

### Administration

- [Configuration management](https://github.com/lookwind09/drupal/blob/9.5.x/core/lib/Drupal/Core/Config/ExportStorageManager.php): `core/lib/Drupal/Core/Config/ExportStorageManager.php`
- [Extensible modules](https://github.com/lookwind09/drupal/tree/9.5.x/core/modules): `core/modules`

### Other components

- **Site user**

## Connections

- Site user → Front controller: requests
- Front controller → Service container: bootstraps
- Content entity storage → SQL entity storage: extends storage (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- SQL entity storage → Database operations: executes queries (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- Database connections → Database operations: opens connections (evidence: `core/lib/Drupal/Core/Database/Database.php`)
- Content entity storage → Cache utilities: uses cache helpers (evidence: `core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php`)
- SQL entity storage → Cache utilities: uses cache backend (evidence: `core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php`)
- Node preview → Content entity storage: previews content
- Menu tree → Database operations: queries storage (evidence: `core/lib/Drupal/Core/Menu/MenuTreeStorage.php`)
- Layout Builder → Extensible modules: extends platform (evidence: `core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php`)
