一键导入
drupal-composer
Drupal Composer management — requiring modules, updates, patches via composer-patches, and version constraints.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Drupal Composer management — requiring modules, updates, patches via composer-patches, and version constraints.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
HTMX in Drupal 11.3+ core — the Htmx PHP fluent builder, dynamic forms with swapOob, partial routes with _htmx_route, response headers, and Drupal.behaviors integration. Use when building interactive UI without full-page reloads using Drupal's native HTMX support.
DDEV local development expertise. Use when working with DDEV projects, containers, configuration, or troubleshooting DDEV environments.
Custom Docker Compose local development patterns. Use when working with Docker-based local environments, container configuration, or troubleshooting Docker setups.
Drupal access control — permissions.yml, access callbacks, AccessResult, custom access checkers, and entity access.
Drupal Cache API — cache tags, contexts, max-age, cache bins, invalidation, and adding cache metadata to render arrays.
Drupal configuration management with Drush — import/export config, preview config changes before applying (e.g., seeing what would change without importing), config splits, and environment syncing.
| name | drupal-composer |
| description | Drupal Composer management — requiring modules, updates, patches via composer-patches, and version constraints. |
composer require drupal/module_name
composer require drupal/module_name:^2.0
composer require drupal/module_name:^1.0@dev
composer update drupal/module_name
composer update drupal/*
composer outdated drupal/*
composer audit
| Constraint | Meaning |
|---|---|
^2.0 | >= 2.0.0 and < 3.0.0 |
~2.0 | >= 2.0.0 and < 2.1.0 |
2.x-dev | Latest 2.x dev branch |
^1.0@dev | >= 1.0 dev releases |
"extra": {
"patches": {
"drupal/module_name": {
"Patch description - issue #1234567": "patches/module_name-patch-description.patch"
},
"drupal/tb_megamenu": {
"Block content support": "patches/tb_megamenu-block-content-support.patch"
}
}
}
Patches apply on composer install and re-apply on composer update drupal/module_name.
composer show drupal/module_name
composer validate
composer clear-cache
composer install --no-cache