class SearchBlockForm

Implements hook_form_FORM_ID_alter().

Plugin annotation

@BootstrapForm("search_block_form")

Hierarchy

Expanded class hierarchy of SearchBlockForm

Related topics

Namespace

Drupal\bootstrap\Plugin\Form
Source
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);
  }

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
FormBase::alterForm public function The alter method to store the code. Overrides FormInterface::alterForm
FormBase::submitForm public static function Form submission handler. Overrides FormInterface::submitForm
FormBase::submitFormElement public static function Form submission handler. Overrides FormInterface::submitFormElement
FormBase::validateForm public static function Form validation handler. Overrides FormInterface::validateForm
FormBase::validateFormElement public static function Form validation handler. Overrides FormInterface::validateFormElement
PluginBase::$theme protected property The currently set theme object.
PluginBase::__construct public function
SearchBlockForm::alterFormElement public function The alter method to store the code. Overrides FormBase::alterFormElement