class SearchForm

Implements hook_form_FORM_ID_alter().

Plugin annotation

@BootstrapForm("search_form")

Hierarchy

Expanded class hierarchy of SearchForm

Related topics

Namespace

Drupal\bootstrap\Plugin\Form
Source
class SearchForm extends FormBase {

  /**
   * {@inheritdoc}
   */
  public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) {
    $form->advanced->setProperty('collapsible', TRUE);
    $form->advanced->setProperty('collapsed', TRUE);
    $form->basic->removeClass('container-inline');
    $form->basic->submit->setProperty('icon_only', TRUE);
    $form->basic->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
SearchForm::alterFormElement public function The alter method to store the code. Overrides FormBase::alterFormElement