Skip to content

Conversation

@andrewfandrew
Copy link

@andrewfandrew andrewfandrew commented Apr 20, 2023

I have removed the block code from the ibm_apim/ibm_apim.emptycontent.inc Drupal 7 legacy file for NoApps, NoProducts and NoApis. That just leaves NoBlogs in the .inc file. That block can be considered separately under a different issue.

The blocks are implemented as block plugins. I have kept the block classes as simple and brief as possible and copied the block content into twig files. I have also moved the block plugins and templates into their respective modules: ibm_apis, products and ibm_apps which seemed the natural place to put them.

The text in the blocks is passed to the twig 't' function which i believe is a drupal twig extension function that makes the text translatable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant