Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Form / SearchBlockForm.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin\Form;
4
5 use Drupal\bootstrap\Utility\Element;
6 use Drupal\Core\Form\FormStateInterface;
7
8 /**
9  * Implements hook_form_FORM_ID_alter().
10  *
11  * @ingroup plugins_form
12  *
13  * @BootstrapForm("search_block_form")
14  */
15 class SearchBlockForm extends FormBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) {
21     $form->actions->submit->setProperty('icon_only', TRUE);
22     $form->keys->setProperty('input_group_button', TRUE);
23   }
24
25 }