When using PHPageBuilder in a CMS-environment, often you want plugins / modules to have the ability to create their own blocks, layouts and assets. This functionality should now be available in PHPageBuilder.
This pr adds an Extension class that can be used to register blocks / layouts from anywhere in the project. This could be used from within a plugin, composer package or more.
A new helper phpb_registered_assets($location = 'header'); is also added to get an array of all assets registered by extensions for use within layouts.
When using PHPageBuilder in a CMS-environment, often you want plugins / modules to have the ability to create their own blocks, layouts and assets. This functionality should now be available in PHPageBuilder.
This pr adds an Extension class that can be used to register blocks / layouts from anywhere in the project. This could be used from within a plugin, composer package or more.
A new helper
phpb_registered_assets($location = 'header');
is also added to get an array of all assets registered by extensions for use within layouts.