Logicbrush\UserFormsUtils\Shortcodes\UserFormShortcodeProvider
Provider for the [user_form] shortcode tag used to embed a user form in the HTML Editor field.
Synopsis
class UserFormShortcodeProvider
implements
ShortcodeHandler
{
- // members
- private static bool $block_default_userforms_requirements = false;
- // methods
- public static array get_shortcodes()
- public static string handle_shortcode()
- protected static void loadUserFormsRequirements()
- protected static void addUserFormsValidatei18n()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\View\Parsers\ShortcodeHandler
Members
private
- $block_default_userforms_requirements
—
Logicbrush\UserFormsUtils\Shortcodes\bool
Set this to true to disable automatic inclusion of UserForms CSS and Javascript files
Methods
protected
public
- get_shortcodes() — Gets the list of shortcodes provided by this handler
- handle_shortcode() — Replace "[user_form id=n]" shortcode with a user form.