Allow per layout block types permissions
This PR adds a new block types configuration specific per section.
How to test
- Create two block types, eg. hero and list item, enable them for LB+
- In admin/config/content/lb_plus_layouts set only the hero one available for a layout, eg. “One column”, and set both available for another layout, eg. “Two columns”
- Create a content, edit the layout and add a section using the configured layout, eg. “One column”
- Open the choose block tray, notice that only the available block type is visible
- Click the “Configure section” link, check the “Restrict blocks types for One column”, change the available block types
- Notice that the available block types are changed in the tray
- Add another section, eg. “Two columns”, change the configuration and try to drag&drop the blocks
- Notice that the layout specific configuration is respected