_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', ); }

_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

_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

_responsive_image_image_style_url

_responsive_image_image_style_url($style_name, $path) Wrapper around image_style_url() so we can return an empty image. File core/modules/responsive_image/responsive_image.module, line 492 Responsive image display formatter for image fields. Code function _responsive_image_image_style_url($style_name, $path) { if ($style_name == RESPONSIVE_IMAGE_EMPTY_IMAGE) { // The smallest data URI for a 1px square transparent GIF image. // http://probablyprogramming.com/2009/03/15/the-tiniest-gi

_rdf_set_field_rel_attribute

_rdf_set_field_rel_attribute(&$variables) Transforms the field property attribute into a rel attribute. File core/modules/rdf/rdf.module, line 286 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function _rdf_set_field_rel_attribute(&$variables) { // Swap the regular field property attribute and use the rel attribute // instead so that it plays well with the RDFa markup when only a link is // present in the field output, for example in the case of

_options_values_in_use

_options_values_in_use($entity_type, $field_name, $values) Checks if a list of values are being used in actual field values. File core/modules/options/options.module, line 123 Defines selection, check box and radio button widgets for text and numeric fields. Code function _options_values_in_use($entity_type, $field_name, $values) { if ($values) { $factory = \Drupal::service('entity.query'); $result = $factory->get($entity_type) ->condition($field_name . '.value', $values

_node_mass_update_helper

_node_mass_update_helper(NodeInterface $node, array $updates, $langcode = NULL) Updates individual nodes when fewer than 10 are queued. Parameters \Drupal\node\NodeInterface $node: A node to update. array $updates: Associative array of updates. string $langcode: (optional) The language updates should be applied to. If none is specified all available languages are processed. Return value \Drupal\node\NodeInterface An updated node object. See also node_mass_update() File core/modules/node/node

_node_mass_update_batch_process

_node_mass_update_batch_process(array $nodes, array $updates, $langcode, $load, $revisions, &$context) Implements callback_batch_operation(). Executes a batch operation for node_mass_update(). Parameters array $nodes: An array of node IDs. array $updates: Associative array of updates. string $langcode: The language updates should be applied to. If none is specified all available languages are processed. bool $load: TRUE if $nodes contains an array of node IDs to be loaded, FALSE if it cont

_node_mass_update_batch_finished

_node_mass_update_batch_finished($success, $results, $operations) Implements callback_batch_finished(). Reports the 'finished' status of batch operation for node_mass_update(). Parameters bool $success: A boolean indicating whether the batch mass update operation successfully concluded. string[] $results: An array of rendered links to nodes updated via the batch mode process. array $operations: An array of function calls (not used in this function). See also _node_mass_update_batch_process()

_node_access_rebuild_batch_operation

_node_access_rebuild_batch_operation(&$context) Implements callback_batch_operation(). Performs batch operation for node_access_rebuild(). This is a multistep operation: we go through all nodes by packs of 20. The batch processing engine interrupts processing and sends progress feedback after 1 second execution time. Parameters array $context: An array of contextual key/value information for rebuild batch process. Related topics Node access rights The node access system determines who can