_search_find_match_with_simplify

_search_find_match_with_simplify($key, $text, $boundary, $langcode = NULL) Finds an appropriate keyword in text. Parameters string $key: The keyword to find. string $text: The text to search for the keyword. string $boundary: Regular expression for the boundary character class (characters that indicate spaces between words). string|null $langcode: Language code for the language of $text, if known. Return value string|null A segment of $text that is between word boundary characters that either

_search_index_truncate

_search_index_truncate(&$text) Helper function for array_walk in search_index_split. File core/modules/search/search.module, line 382 Enables site-wide keyword searching. Code function _search_index_truncate(&$text) { // Use a static array to avoid re-truncating text we've done before. // The same words may often be passed in during excerpt generation. static $truncated = array(); if (isset($truncated[$text])) { $text = $truncated[$text]; return; } // If we didn't

_system_default_theme_features

_system_default_theme_features() Returns an array of default theme features. See also \Drupal\Core\Extension\ThemeHandler::$defaultFeatures File core/includes/theme.inc, line 104 The theme system, which controls the output of Drupal. Code function _system_default_theme_features() { return array( 'favicon', 'logo', 'node_user_picture', 'comment_user_picture', 'comment_user_verification', ); }

_system_rebuild_module_data

_system_rebuild_module_data() Helper function to scan and collect module .info.yml data. Return value \Drupal\Core\Extension\Extension[] An associative array of module information. File core/modules/system/system.module, line 958 Configuration system that lets administrators modify the workings of the site. Code function _system_rebuild_module_data() { $listing = new ExtensionDiscovery(\Drupal::root()); // Find installation profiles. This needs to happen before performing a // module

_system_rebuild_module_data_ensure_required

_system_rebuild_module_data_ensure_required($module, &$modules) Ensures that dependencies of required modules are also required. Parameters \Drupal\Core\Extension\Extension $module: The module info. \Drupal\Core\Extension\Extension[] $modules: The array of all module info. File core/modules/system/system.module, line 1046 Configuration system that lets administrators modify the workings of the site. Code function _system_rebuild_module_data_ensure_required($module, &$modules) { if

_system_update_create_block

_system_update_create_block($name, $theme_name, array $values) Helper function to create block configuration objects for an update. Parameters string $name: The name of the config object. string $theme_name: The name of the theme the block is associated with. array $values: The block config values. File core/modules/system/system.install, line 1409 Install, update and uninstall functions for the system module. Code function _system_update_create_block($name, $theme_name, array $values) { i

_template_preprocess_default_variables

_template_preprocess_default_variables() Returns hook-independent variables to template_preprocess(). File core/includes/theme.inc, line 1223 The theme system, which controls the output of Drupal. Code function _template_preprocess_default_variables() { // Variables that don't depend on a database connection. $variables = array( 'attributes' => array(), 'title_attributes' => array(), 'content_attributes' => array(), 'title_prefix' => array(), 'title_suffix'

_toolbar_do_get_rendered_subtrees

_toolbar_do_get_rendered_subtrees(array $data) #pre_render callback for toolbar_get_rendered_subtrees(). File core/modules/toolbar/toolbar.module, line 304 Administration toolbar for quick access to top level administration items. Code function _toolbar_do_get_rendered_subtrees(array $data) { $menu_tree = \Drupal::service('toolbar.menu_tree'); // Load the administration menu. The first level is the "Administration" link. // In order to load the children of that link and the subsequent t

_toolbar_get_subtrees_hash

_toolbar_get_subtrees_hash() Returns the hash of the per-user rendered toolbar subtrees. Return value string The hash of the admin_menu subtrees. File core/modules/toolbar/toolbar.module, line 354 Administration toolbar for quick access to top level administration items. Code function _toolbar_get_subtrees_hash() { list($subtrees, $cacheability) = toolbar_get_rendered_subtrees(); $hash = Crypt::hashBase64(serialize($subtrees)); return [$hash, $cacheability]; }

_tracker_add

_tracker_add($nid, $uid, $changed) Updates indexing tables when a node is added, updated, or commented on. Parameters int $nid: A node ID. int $uid: The node or comment author. int $changed: The node updated timestamp or comment timestamp. File core/modules/tracker/tracker.module, line 242 Tracks recent content posted by a user or users. Code function _tracker_add($nid, $uid, $changed) { // @todo This should be actually filtering on the desired language and just // fall back to the def