-
-
Save rhukster/133b1576d190cfe8d38058bc2dd32ff4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function getSubscribedEvents() | |
{ | |
return [ | |
'onThemeInitialized' => ['onThemeInitialized', 0], | |
'onTwigInitialized' => ['onTwigInitialized', 0], | |
]; | |
} | |
public function onThemeInitialized() | |
{ | |
} | |
public function onTwigInitialized() | |
{ | |
$twig = $this->grav['twig']; | |
$form_class_variables = [ | |
'form_outer_classes' => 'form-horizontal', | |
'form_button_outer_classes' => '', | |
'form_button_classes' => 'btn', | |
'form_errors_classes' => '', | |
'form_field_outer_classes' => 'form-group', | |
'form_field_outer_label_classes' => 'col-3', | |
'form_field_label_classes' => 'form-label', | |
'form_field_outer_data_classes' => 'col-9', | |
'form_field_data_classes' => '', | |
'form_errors_classes' => '', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment