hospital_management-8.x-1.x-dev/web/themes/bootstrap/src/Plugin/Form/SearchBlockForm.php
web/themes/bootstrap/src/Plugin/Form/SearchBlockForm.php
<?php
namespace Drupal\bootstrap\Plugin\Form;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter().
*
* @ingroup plugins_form
*
* @BootstrapForm("search_block_form")
*/
class SearchBlockForm extends FormBase {
/**
* {@inheritdoc}
*/
public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) {
$form->actions->submit->setProperty('icon_only', TRUE);
$form->keys->setProperty('input_group_button', TRUE);
}
}
