SearchBlockForm::buildForm

public SearchBlockForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/search/src/Form/SearchBlockForm.php, line 75 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\

SearchBlockForm::$searchPageRepository

The search page repository. Type: \Drupal\search\SearchPageRepositoryInterface File core/modules/search/src/Form/SearchBlockForm.php, line 22 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\Form Code protected $searchPageRepository;

SearchBlockForm::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/search/src/Form/SearchBlockForm.php, line 36 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\Form Code protected $renderer;

SearchBlockForm::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface Overrides FormBase::$configFactory File core/modules/search/src/Form/SearchBlockForm.php, line 29 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\Form Code protected $configFactory;

SearchBlockForm

Builds the search form for the search block. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\search\Form\SearchBlockForm File core/modules/search/src/Form/SearchBlockForm.php, line 15 Namespace Drupal\search\Form Members Name Modifiers Type Description DependencySerializatio

Search::preRenderSearch

public static Search::preRenderSearch($element) Prepares a #type 'search' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #size, #maxlength, #placeholder, #required, #attributes. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Search.php, line 57 Class Search Provides an HTML5 input element

Search::getInfo

public Search::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Search.php, line 27 Class Search Provides an HTML5 input element with type of "search". Namespace Drupal\Core\Render\Element Code pub

search.pages.inc

User page callbacks for the Search module. File core/modules/search/search.pages.inc Functions Name Description search_theme_suggestions_search_result Implements hook_theme_suggestions_HOOK(). template_preprocess_search_result Prepares variables for individual search result templates.

search.module

Enables site-wide keyword searching. File core/modules/search/search.module Functions Name Description search_cron Implements hook_cron(). search_dirty Marks a word as "dirty" (changed), or retrieves the list of dirty words. search_excerpt Returns snippets from a piece of text, with search keywords highlighted. search_expand_cjk Splits CJK (Chinese, Japanese, Korean) text into tokens. search_form_search_block_form_alter Implements hook_form_FORM_ID_alter() for the sear

search.install

Install, update, and uninstall functions for the Search module. File core/modules/search/search.install Functions Name Description search_requirements Implements hook_requirements(). search_schema Implements hook_schema().