Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

themespace

5 sites No security coverage
View on drupal.org

Adds enabled theme namespaces to the "containers.themespaces" parameter and a "themespace.namespaces" service to the dependency injection container. This allows themes to define classes and have discoverable class attributes plugins.

Theme namespaces are added to PSR4 and the class loader by the
Drupal\Core\Extension\ThemeHandler::addTheme() method. This module adds the ability to traverse namespaces of enabled themes in order to allow plugin
attribute discovery in themes.

The module also provides ProviderTypedPlugindDefinitions and attributes to
ensure that theme plugins and module provided plugins are identified and that plugin managers are able to handle them separately. Theme plugins in general should only be available when the providing theme is the active theme or from a base theme of the active theme.

Module does not add any functionality on its own and only provides utility for
module and theme developers to use OOP techniques in themes or to create new plugin APIs that support plugin discovery with themes.

See the Provider Typed Plugins section of the README.md file for more information about using plugin definitions and discovery classes in themes and modules.

Warning: Version 3 corrects issues the incorrect naming convention for theme namespaces, and by doing so can cause breaking changes if you use the previously suggested theme namespace convention (\Drupal\Theme\<theme name>).

Instead use \Drupal\<theme name> which will now match the Drupal namespace convention for modules and themes. Also instead of using container.namespaces for your plugin manager namespace traversable, replace this with the themespace.namespaces service in order to use provider typed plugin discovery.

Activity

Total releases
4
First release
Mar 2025
Latest release
3 months ago
Release cadence
104 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
3.0.0-beta3 Pre-release Jan 12, 2026
3.0.0-beta2 Pre-release Jan 5, 2026
3.0.0-beta1 Pre-release Mar 6, 2025
3.0.x-dev Dev Mar 6, 2025