Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchPluginBase.php

function SearchPluginBase::searchFormAlter

Overrides SearchInterface::searchFormAlter

1 method overrides SearchPluginBase::searchFormAlter()
NodeSearch::searchFormAlter in core/modules/node/src/Plugin/Search/NodeSearch.php
Alters the search form when being built for a given plugin.

File

core/modules/search/src/Plugin/SearchPluginBase.php, line 115

Class

SearchPluginBase
Defines a base class for plugins wishing to support search.

Namespace

Drupal\search\Plugin

Code

public function searchFormAlter(array &$form, FormStateInterface $form_state) {
    // Empty default implementation.
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal