Document differences between themes and modules and their limitations

Created on 20 July 2016, over 8 years ago
Updated 13 September 2024, 4 months ago

I am looking at converting a module I wrote and integrating it straight into my theme so as to reduce dependencies.

At first when I wrote the module as I was under the impression that a theme was not able to use hooks such as hook_page_attachments and hook_libraries_info_alter etc. It doesn't seem that bootstrap has this problem as I am fully able to leverage those hooks.

So this got to me wondering what are the chief limitations of a Bootstrap theme as compared to a module?

I know that themes can't currently depend on modules which is being tracked here:

#474684: Allow themes to declare dependencies on modules

Just was curious as wanted to start my module port and wasn't sure if I would hit any roadblocks.

I am mostly porting some custom blocks, controllers, ckeditor plugin and a few services. The one concern I do have is I have a relatively complicated settings form coupled with a pretty big schema.yml file.

📌 Task
Status

Closed: won't fix

Version

3.0

Component

Documentation

Created by

🇨🇦Canada sylus

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024