We need to create a companion module for our theme because Drupal has decided that themes can only contain presentation layer and not logic such as block types. Since we need block types for our frontpage implementation, we need a module for that code to live in.
We had discussed creating a whole new repo or even just adding the block type to the base TripalCultivate module/repo but have decided on the following plan instead:
Move the current theme into a subdirectory in the current repo leaving the composer.json where it is.
Create a new subdirectory containing the companion module
Setup dependencies so that the module is installed before the theme
Update associated dockerfiles both in this repo and the base theme.
We need to create a companion module for our theme because Drupal has decided that themes can only contain presentation layer and not logic such as block types. Since we need block types for our frontpage implementation, we need a module for that code to live in.
We had discussed creating a whole new repo or even just adding the block type to the base TripalCultivate module/repo but have decided on the following plan instead: