Sources & Maintenance
Last Reviewed: 2026-02-12 Drupal Version Compatibility: Drupal 11.x (with notes for 10.2+ features) Review Cycle: Quarterly or when major Form API changes occur
Sources Used (2025-2026):
Core Code References:
- Drupal 11.x core code: /web/core/lib/Drupal/Core/Form/
- Contrib example: /modules/contrib/ai_provider_anthropic/src/Form/AnthropicConfigForm.php
Official Documentation: - Form API Overview - Form API Workflow - Dependency Injection in Forms - #config_target Documentation - #config_target Implementation
Best Practices & Security (2025-2026): - Drupal Form API Complete Guide (2025) - Mastering Dependency Injection (2025) - Drupal Security Best Practices 2026 (2025) - Top Drupal Security Practices (2025) - CSRF Prevention with Form Tokens
Performance (2025): - Advanced Performance Optimization (2025) - Performance Optimization Tips 2025 (2025) - Web Development Best Practices 2025 (2025)
Anti-Patterns: - Dependency Injection Anti-Patterns (Matt Glaman) - 5 Mistakes to Avoid (Acquia)
Community Resources: - Drupal at your Fingertips - Forms (Selwyn Polit) - QED42: #config_target Tutorial (2024)
Change Log (v3.0 - 2026-02-12): - Added comprehensive "Development Standards & Anti-Patterns" section - Enhanced Security Best Practices with 2025-2026 research - Enhanced Performance Optimization with concrete thresholds - Added "Why This Matters" context to Common Mistakes sections - Updated sources with 2025-2026 best practices research - Added opinionated senior developer perspective throughout - Moved from future_skills/ to guides/ directory - Enhanced with research-backed recommendations