Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
42.7 KB
MD5: 66dca1b1d839e8d709c88e3dae221c62
SHA-1: f99f7c08b1fbae1e4018f168a7e015b922c842f8
SHA-256: f3542089e23cbfb65640296a2f86a90962b49b8c3119a412cc7dde03cdeb1345
Download zip
60.6 KB
MD5: fcca20d26299e6406287db035bc95f21
SHA-1: 2778f9e3afaed745825dbf0c9321fbc206bc7868
SHA-256: 932f18e5f429e821e872e6521947012d0c97e68c537ff19023e1a3657aefbe86
Release notes
All notable changes to the Themeless project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.0 - 2026-02-14
Added
- Drupal 10/11 compatibility - Complete rewrite for modern Drupal
- Multi-entity support - Nodes, users, and taxonomy terms via unified API
- RESTful API endpoints -
/api/node/{id},/api/user/{id},/api/taxonomy/term/{id} - Format query parameter -
?format=json|xml|htmlfor output selection - CORS support - Configurable cross-origin resource sharing
- Security features - Domain whitelist and referrer checking
- Demo submodule -
themeless_demowith sample content - Configuration schema - Proper validation for settings
- Modern service architecture - ThemelessOutputBuilder service
- Controller-based routing - ThemelessController handles all requests
- View mode integration - Uses standard Drupal display management
Changed
- URL pattern: Changed from
node/%/themelessto/api/node/{id}(RESTful) - Format selection: Query parameter instead of per-bundle configuration
- Field configuration: Native Drupal view modes instead of custom forms
- Architecture: Controller + Service pattern instead of hook_menu callbacks
- Configuration: YAML configuration instead of variables
- PHP requirement: Minimum PHP 8.1 (Drupal 10/11 requirement)
Removed
- Drupal 7 support - Use 7.x-1.x branch for Drupal 7
- Path alias support - Simplified API, no
/alias/themelesspattern - Custom settings forms - Leverages Drupal core field display UI
- Per-bundle format configuration - Replaced with query parameters
- Theme templates - HTML format returns rendered fields directly
- hook_menu - Replaced with routing.yml
- hook_permission - Replaced with permissions.yml
- hook_url_inbound_alter / hook_url_outbound_alter - No alias support
- hook_form_alter for field display settings - Uses standard view modes
Breaking Changes from 7.x-1.x
- No upgrade path - Fresh install required, no data migration
- Different URL structure - Update any hardcoded URLs or bookmarks
- Configuration incompatible - Variables do not carry over
- Entity access only - No custom "view themeless tab" permissions (optional now)
- Requires Drupal 10+ - Cannot use on Drupal 7/8/9 (use appropriate branches)
Technical Details
- Uses Symfony HTTP Foundation for responses
- JSON encoding with
json_encode()andJSON_PRETTY_PRINT - XML generation with
SimpleXMLElement - HTML rendering via entity view builder
- CORS headers:
Access-Control-Allow-Origin,Access-Control-Allow-Methods - Security checks in controller before output generation
- Wildcard domain support in whitelist (e.g.,
*.example.com)
Development
- Follows Drupal coding standards
- PHPStan level 1 compatible
- Rector-processed for modern PHP patterns
- Git branch:
2.0.x - Semantic versioning from this release forward
Version Strategy
- 2.x branch: Drupal 10/11 (active development)
- 1.x branch: Drupal 8/9 (planned backport, maintenance mode)
- 7.x-1.x branch: Drupal 7 (legacy, no further development)