<?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Form\SystemThemeSettings.
- */
namespace Drupal\bootstrap\Plugin\Form;
-use Drupal\bootstrap\Annotation\BootstrapForm;
use Drupal\bootstrap\Bootstrap;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
- * @return \Drupal\bootstrap\Theme|FALSE
+ * @return \Drupal\bootstrap\Theme|false
* 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.
- // 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.
$setting->validateForm($form->getArray(), $form_state);
}
}