search_theme

search_theme() Implements hook_theme(). File core/modules/search/search.module, line 99 Enables site-wide keyword searching. Code function search_theme() { return array( 'search_result' => array( 'variables' => array('result' => NULL, 'plugin_id' => NULL), 'file' => 'search.pages.inc', ), ); }

SecuredRedirectResponse::createFromRedirectResponse

public static SecuredRedirectResponse::createFromRedirectResponse(RedirectResponse $response) Copies an existing redirect response into a safe one. The safe one cannot accidentally redirect to an external URL, unless actively wanted (see TrustedRedirectResponse). Parameters \Symfony\Component\HttpFoundation\RedirectResponse $response: The original redirect. Return value static File core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php, line 29 Class SecuredRedirectResponse

search_update_totals

search_update_totals() Updates the {search_total} database table. This function is called on shutdown to ensure that {search_total} is always up to date (even if cron times out or otherwise fails). File core/modules/search/search.module, line 205 Enables site-wide keyword searching. Code function search_update_totals() { // Update word IDF (Inverse Document Frequency) counts for new/changed words. foreach (search_dirty() as $word => $dummy) { // Get total count $total = db_quer

search_simplify

search_simplify($text, $langcode = NULL) Simplifies and preprocesses text for searching. Processing steps: Entities are decoded. Text is lower-cased and diacritics (accents) are removed. hook_search_preprocess() is invoked. CJK (Chinese, Japanese, Korean) characters are processed, depending on the search settings. Punctuation is processed (removed or replaced with spaces, depending on where it is; see code for details). Words are truncated to 50 characters maximum. Parameters string $text:

SecuredRedirectResponse

Provides a common base class for safe redirects. In case you want to redirect to external URLs use TrustedRedirectResponse. For local URLs we use LocalRedirectResponse which opts out of external redirects. Hierarchy class \Symfony\Component\HttpFoundation\RedirectResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Component\HttpFoundation\SecuredRedirectResponse File core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php, line 16 Namespace Drupal\Comp

search_invoke_preprocess

search_invoke_preprocess(&$text, $langcode = NULL) Invokes hook_search_preprocess() to simplify text. Parameters string $text: Text to preprocess, passed by reference and altered in place. string|null $langcode: Language code for the language of $text, if known. File core/modules/search/search.module, line 409 Enables site-wide keyword searching. Code function search_invoke_preprocess(&$text, $langcode = NULL) { foreach (\Drupal::moduleHandler()->getImplementations('search_prepr

search_mark_for_reindex

search_mark_for_reindex($type = NULL, $sid = NULL, $langcode = NULL) Changes the timestamp on indexed items to 'now' to force reindexing. This function is meant for use by search page plugins, or for building a user interface that lets users mark all or parts of the search index for reindexing. Parameters string $type: (optional) The plugin ID or other machine-readable type of this item. If omitted, the entire search index is marked for reindexing, and $sid and $langcode are ignored. int $sid:

search_schema

search_schema() Implements hook_schema(). File core/modules/search/search.install, line 11 Install, update, and uninstall functions for the Search module. Code function search_schema() { $schema['search_dataset'] = array( 'description' => 'Stores items that will be searched.', 'fields' => array( 'sid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'description' => 'Search item I

search_requirements

search_requirements($phase) Implements hook_requirements(). For the Status Report, return information about search index status. File core/modules/search/search.install, line 131 Install, update, and uninstall functions for the Search module. Code function search_requirements($phase) { $requirements = array(); if ($phase == 'runtime') { $remaining = 0; $total = 0; $search_page_repository = \Drupal::service('search.search_page_repository'); foreach ($search_page_repository

search_preprocess_block

search_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/search/search.module, line 111 Enables site-wide keyword searching. Code function search_preprocess_block(&$variables) { if ($variables['plugin_id'] == 'search_form_block') { $variables['attributes']['role'] = 'search'; } }