3553636-create-theme-hook
3553636-create-theme-hook
What was done
Created a module defined hook_theme method used by Local Task Controller, and uses a generic twig file that can be overriden.
- In LocakTaskUsagePlusController
- Changed the build render array to use the theme entity_usage_plus_usage_table
- Added an attributes parameter to the render array to give the table a class name of entity_usage_plus_usage_table
- In entity_usage_plus.modules
- Implemented a theme_hook() function called entity_usage_plus_theme()
- Define the entity_usage_plus_usage_table theme
- Point to the entity-usage-plus-usage-table.html.twig file for display
- Implemented a theme_hook() function called entity_usage_plus_theme()
- Added entity-usage-plus-usage-table.html.twig file for display of the usage table
Closes #3553646