FAQ Block
FAQ Block : FAQ Block provices the backend configuration block to add the list of commonly asked questions and answers about a specific topic.
We can place the block from structure - block layout or from the layout builder.
How to override the template file
We can copy the default twig template file
templates/block/faq-block.html.twig
and place on the active theme.
Available variables on the twig template:
- faqs: array of faq related accordion details.
- use {{ faq.question }} and faq.answer['value'] inside the loop
- use {{ faqs_data['color'] }} for the toggle icon color
