Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Form / SystemThemeSettings.php
index 2f0ef492fd72da6b35201d939d975c5a37f67256..35bbcb15d3b563801db9e62388aa459fc522147c 100644 (file)
@@ -1,12 +1,7 @@
 <?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;
@@ -95,7 +90,7 @@ class SystemThemeSettings extends FormBase implements FormInterface {
    * @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) {
@@ -179,9 +174,9 @@ class SystemThemeSettings extends FormBase implements FormInterface {
     // 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);
     }
   }