Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor NoApps NoProducts and NoApis blocks #46

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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