use Drupal\bootstrap\Bootstrap;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\bootstrap\Bootstrap;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
* The currently selected theme object or FALSE if not a Bootstrap theme.
*/
public static function getTheme(Element $form, FormStateInterface $form_state) {
* The currently selected theme object or FALSE if not a Bootstrap theme.
*/
public static function getTheme(Element $form, FormStateInterface $form_state) {
// Iterate over all setting plugins and allow them to participate.
foreach ($theme->getSettingPlugin() as $setting) {
// Allow the setting to participate in the form validation process.
// Iterate over all setting plugins and allow them to participate.
foreach ($theme->getSettingPlugin() as $setting) {
// Allow the setting to participate in the form validation process.
- // Must call the "validateForm" method in case any setting actually uses it.
- // It should, in turn, invoke "validateFormElement", if the setting that
- // overrides it is implemented properly.
+ // Must call the "validateForm" method in case any setting actually uses
+ // it. It should, in turn, invoke "validateFormElement", if the setting
+ // that overrides it is implemented properly.