Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / front / src / Form / FrontPageHomeLinksForm.php
index 63866f58979fc84a04608dde664e72f9948df493..0cbffb4ce876dd2e2d68c0d82e5eaad1b41932b8 100644 (file)
@@ -1,10 +1,5 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\front_page\Form\FrontPageHomeLinksForm.
- */
-
 namespace Drupal\front_page\Form;
 
 use Drupal\Core\Form\ConfigFormBase;
@@ -37,7 +32,7 @@ class FrontPageHomeLinksForm extends ConfigFormBase {
     global $base_url;
 
     $config = $this->config('front_page.settings');
-    $form['front_page_home_link_path'] = array(
+    $form['front_page_home_link_path'] = [
       '#type' => 'textfield',
       '#title' => $this->t('Redirect your site HOME links to'),
       '#default_value' => $config->get('home_link_path'),
@@ -45,7 +40,7 @@ class FrontPageHomeLinksForm extends ConfigFormBase {
       '#rows' => 1,
       '#description' => $this->t('Specify where the user should be redirected to. An example would be <em>/node/12</em>. Leave blank when you\'re not using HOME redirect.'),
       '#field_prefix' => $base_url . base_path(),
-    );
+    ];
 
     return parent::buildForm($form, $form_state);
   }