We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I looked through the docs but did not find anything. It would be great if you could register/enable/disable bard sets via PHP.
Something like:
Bard::registerSet(name: 'testimonials-v2', group: 'blocks', set: [ 'display' => 'Testimonials', 'icon' => 'text-formatting-quotation', 'fields' => ['import' => 'block_testimonials'], ]);
And if you needed to register it based on a specific condition:
Bard::boot(function ($field, $context) { if ($context['collection'] === 'posts') { return; } register_custom_sets(); });
Finally to disable a set:
Bard::deregisterSet('testimonials-v1');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I looked through the docs but did not find anything.
It would be great if you could register/enable/disable bard sets via PHP.
Something like:
And if you needed to register it based on a specific condition:
Finally to disable a set:
The text was updated successfully, but these errors were encountered: