core
core copied to clipboard
Create widgetbuilder for widgets and snippets
See https://github.com/bolt/four/pull/382#discussion_r277020730
$snippet = (new WidgetBuilder(SnippetWidget::class))
->setTemplate('*foo*')
->setTarget(Target::END_OF_BODY)
->getWidget();
then widgets can stay immutable :)